/* public/css/portal-auth.css */

/* --- General Body and Layout for Auth Pages --- */
body { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    background-color: #f4f4f4; 
    font-family: sans-serif; 
    margin: 0;
}

/* --- Authentication Form Container --- */
.auth-container { 
    background: white; 
    padding: 30px 40px; /* Increased horizontal padding */
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 400px;
    box-sizing: border-box;
}

.auth-container h2 { 
    text-align: center; 
    margin-top: 0;
    margin-bottom: 25px; 
    color: #333; 
}

/* --- Form Fields --- */
.auth-container input[type="email"], 
.auth-container input[type="password"], 
.auth-container input[type="text"],
.auth-container input[type="url"] { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 16px; 
    transition: border-color 0.2s ease;
}

.auth-container input:focus {
    outline: none;
    border-color: #c62307;
    box-shadow: 0 0 0 2px rgba(198, 35, 7, 0.2);
}


/* --- Buttons --- */
.auth-container button { 
    width: 100%; 
    padding: 12px; 
    background-color: #c62307; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: bold;
    transition: background-color 0.3s ease; 
}

.auth-container button:hover { 
    background-color: #a31c05; 
}

.auth-container button:disabled { 
    background-color: #cccccc; 
    cursor: not-allowed; 
}

/* --- Links and Helper Text --- */
.auth-container p { 
    text-align: center; 
    margin-top: 20px; 
    font-size: 14px; 
}

.auth-container p a { 
    color: #c62307; 
    text-decoration: none; 
    font-weight: bold;
}

.auth-container p a:hover { 
    text-decoration: underline; 
}

/* --- Error Message Styling --- */
.error-message { 
    color: #d93025; /* A standard error red */
    text-align: center; 
    margin-bottom: 15px; 
    font-size: 14px; 
    font-weight: 500;
    min-height: 1.2em; /* Prevents layout shift when error appears */
}

/* --- Consent Checkbox Styling --- */
.consent-group {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}
.consent-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}
.consent-group label {
    line-height: 1.4;
    color: #555;
}
.consent-group label a {
    color: #c62307;
    text-decoration: none;
}
.consent-group label a:hover {
    text-decoration: underline;
}

/* --- Social Login Buttons & Separator --- */
.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    margin: 20px 0;
}
.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.or-separator:not(:empty)::before {
    margin-right: .25em;
}
.or-separator:not(:empty)::after {
    margin-left: .25em;
}
.social-btn {
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: 500;
    transition: opacity 0.2s ease-in-out;
}
.social-btn:hover {
    opacity: 0.9;
}
.google-btn {
    background-color: #4285F4;
    color: white;
}
.facebook-btn {
    background-color: #1877F2;
    color: white;
}

/* --- New Style for Coming Soon Text --- */
.coming-soon-text {
    font-size: 13px;
    color: #777;
    font-weight: 500;
    margin-top: -10px; /* Pulls text closer to the "OR" line */
    margin-bottom: 20px; /* Adds space before the disabled buttons */
    text-align: center;
}

.legal-disclaimer {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}
.legal-disclaimer a {
    color: #555;
    font-weight: 500;
    text-decoration: underline;
}
.legal-disclaimer a:hover {
    color: #c62307;
}

/* --- Language Switcher for Auth Pages --- */
.page-language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}
.page-language-switcher button {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}
.page-language-switcher button:hover {
    border-color: #a31c05;
    color: #a31c05;
}
.page-language-switcher button.active-lang {
    background-color: #c62307;
    color: white;
    border-color: #c62307;
}