/* =====================================================
   AUTH PAGES (login, register)
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--color-darkest) 0%, var(--color-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    padding: 50px 40px;
}

/* Register page wider */
.auth-container.register {
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #17252a;
    margin-bottom: 10px;
}

.logo .highlight {
    color: var(--color-success);
}

.auth-header h1 {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.auth-container .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-brand-teal-dark);
    margin-bottom: 15px;
    margin-top: 25px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-brand-teal-soft);
}
.auth-container .section-title:first-of-type {
    margin-top: 0;
}

.auth-container .form-group {
    margin-bottom: 20px;
}

.auth-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 13px;
}

.auth-container .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.auth-container .form-control:focus {
    border-color: var(--color-brand-teal-dark);
    box-shadow: 0 0 0 3px rgba(43, 122, 120, 0.1);
}

.auth-container .form-row {
    display: flex;
    gap: 15px;
}

.auth-container .form-row .form-group {
    flex: 1;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-brand-teal) 0%, var(--color-brand-teal-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--color-brand-teal-dark) 0%, var(--color-brand-teal-darkest) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 122, 120, 0.3);
}

.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-brand-teal) 0%, var(--color-brand-teal-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--color-brand-teal-dark) 0%, var(--color-brand-teal-darkest) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 122, 120, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border-pale);
}

.auth-footer p {
    color: var(--color-text-muted);
    font-size: 13px;
}

.auth-footer a {
    color: var(--color-brand-teal-dark);
    text-decoration: none;
    font-weight: 600;
}

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

.auth-container .error-list {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    list-style: none;
}

.auth-container .error-list li {
    color: var(--color-danger);
    font-size: 13px;
    margin-bottom: 5px;
}

.auth-container .error-list li:last-child {
    margin-bottom: 0;
}

.messages {
    list-style: none;
    margin-bottom: 20px;
}

.messages li {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.messages li.success {
    background: var(--color-success-soft);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.messages li.error {
    background: #fee;
    color: var(--color-danger);
    border: 1px solid #fcc;
}

/* Register-specific inline errors */
.auth-container .error-list.field-errors {
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 6px;
    margin-bottom: 0;
}
.auth-container .error-list.field-errors li {
    font-size: 12px;
    margin-bottom: 3px;
}

.help-text {
    font-size: 11px;
    color: var(--color-gray-500);
    margin-top: 5px;
}

.help-text ul {
    margin-top: 5px;
    padding-left: 18px;
}

.help-text li {
    margin-bottom: 2px;
}

.password-requirements {
    background: var(--color-bg-muted);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--color-text-muted);
}

.password-requirements strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text);
}

.password-requirements ul {
    margin: 0;
    padding-left: 18px;
}

.password-requirements li {
    margin-bottom: 3px;
}
