/* public_html/pages/home/home.css */
.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 0px); /* Adjusted to assume header might be hidden */
    /* If header is present and has a fixed height (e.g., 60px), use calc(100vh - 60px) */
    text-align: center;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color); 
}

/* Login Form Styling */
#login-form-container {
    background-color: var(--surface-color);
    padding: 30px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px; 
    margin: auto; 
}

#login-form-container h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1em;
    color: var(--text-light-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1em;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: #fdfdfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    /* Define --primary-color-rgb in :root if not present, e.g., --primary-color-rgb: 52, 152, 219; */
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.25); 
}

#login-form button.primary-action-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 10px;
}

/* Main Kiosk Content Styling (Logged In View) */
#main-kiosk-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    flex-grow: 1; 
    padding: 20px; 
}

.welcome-message h1 {
    font-size: 2.5em; 
    color: var(--primary-color); 
    margin-bottom: 0.5em;
    font-weight: 600;
}

.welcome-message p {
    font-size: 1.4em; 
    color: var(--text-color); 
    margin-bottom: 1.5em;
}

.start-order-button {
    padding: 20px 40px; 
    font-size: 1.8em; 
    color: #fff;
    background-color: var(--primary-color); 
    border: none;
    border-radius: 10px; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

.start-order-button:hover,
.start-order-button:focus {
    background-color: #2980b9; 
    transform: translateY(-2px); 
    outline: none;
}

.start-order-button:active {
    background-color: #1f6392; 
    transform: translateY(1px);
}

/* Separator */
.home-separator {
    border: none;
    border-top: 1px solid var(--border-color-light, #ddd); /* Use a lighter border color variable or fallback */
    margin: 30px auto; 
    width: 80%;
    max-width: 400px;
}

/* Reorder Section Styling */
#reorder-section {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--surface-color-lighter, #f9f9f9); /* Define --surface-color-lighter or use var(--surface-color) */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 450px;
    margin: auto;
}

#reorder-section h3 {
    font-size: 1.4em;
    color: var(--text-color); /* Or var(--primary-color) if you prefer */
    margin-bottom: 20px;
}

#reorder-phone-form .form-group { /* Re-uses .form-group styles */
    margin-bottom: 15px;
}

#reorder-phone-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.2em;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    text-align: center; 
    letter-spacing: 0.1em; /* For phone format visual */
}
#reorder-phone-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 52, 152, 219), 0.25);
}

#reorder-phone-form button.primary-action-button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}

/* Logout Section Styling */
.logout-section {
    margin-top: 40px; 
    padding-top: 20px;
    width: 100%;
    max-width: 300px; 
}
#logout-btn.secondary-action-button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    /* width: 100%; */
    padding: 12px 25px;
    font-size: 1.1em;
    bottom: 0;
    left: 40vw;
    position: absolute;
}
#logout-btn.secondary-action-button:hover {
    background-color: #c0392b; /* Darker red */
}

/* PIN Modal specific styling (if needed beyond global modal styles) */
#pin-logout-modal .modal-content {
    max-width: 380px;
}
#pin-logout-modal .form-group input[type="password"] { /* Specifically target PIN input */
    text-align: center;
    font-size: 1.5em; 
    letter-spacing: 0.3em; /* Space out PIN digits */
}


/* Tablet Portrait Specific Adjustments */
@media (orientation: portrait) and (max-width: 800px) { 
    .welcome-message h1 { font-size: 2.2em; }
    .welcome-message p { font-size: 1.2em; }
    .start-order-button { font-size: 1.6em; padding: 18px 35px; }
    #login-form-container { padding: 25px 30px; }
}

/* Styling for when user is not logged in and header is hidden */
/* The .kiosk-home-page class is added to main when header is hidden on home page */
.kiosk-main-content.kiosk-home-page { 
    /* If header is hidden, main content might need to adjust its top margin or padding */
    /* For example, if header was 60px high:
    padding-top: 60px; 
    */
    /* Or ensure .home-container handles full height correctly */
}
