/* Auth form styles - shared across login, register, and forgot-password pages */

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

body {
    font-family: 'Inter', sans-serif;
    background: #fef9e8;  /* Warm amber tint background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Register page has extra padding on body */
body.register-body {
    padding: 20px 0;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.08);
    border: 1px solid #fde68a;  /* amber-200 */
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.auth-logo a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;  /* slate-800 */
}

.auth-logo i {
    color: #f59e0b;  /* amber-500 */
    font-size: 32px;
}

.auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;  /* slate-800 */
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: #64748b;  /* slate-500 */
    margin-bottom: 28px;
}

/* Error messages */
.auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Success message (forgot-password) */
.auth-success {
    background: #fef9e8;  /* amber-50 */
    color: #d97706;       /* amber-600 */
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #fde68a;  /* amber-200 */
    text-align: center;
}

/* Multiple errors list (register) */
.auth-errors {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

.auth-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-errors li {
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-errors li::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;  /* slate-700 */
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #fde68a;  /* amber-200 */
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fffbeb;  /* amber-50 */
}

.form-input:focus {
    outline: none;
    border-color: #f59e0b;  /* amber-500 */
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
    background: #fff;
}

.form-input::placeholder {
    color: #94a3b8;  /* slate-400 */
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-link {
    font-size: 13px;
    color: #f59e0b;  /* amber-500 */
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
    color: #d97706;  /* amber-600 */
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #f59e0b, #d97706);  /* amber gradient */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;  /* slate-500 */
}

.auth-footer a {
    color: #f59e0b;  /* amber-500 */
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #d97706;  /* amber-600 */
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-input {
    padding-left: 40px;
}

.input-icon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #f59e0b;  /* amber-500 */
    font-size: 14px;
}

/* Password strength meter (register only) */
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: #fde68a;  /* amber-200 */
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.password-strength-text {
    font-size: 11px;
    margin-top: 4px;
    color: #94a3b8;  /* slate-400 */
}

/* Consent checkbox (register only) */
.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.consent-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #f59e0b;  /* amber-500 */
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.consent-group label {
    font-size: 13px;
    color: #64748b;  /* slate-500 */
    line-height: 1.5;
}

.consent-group a {
    color: #f59e0b;  /* amber-500 */
    text-decoration: none;
}

.consent-group a:hover {
    text-decoration: underline;
    color: #d97706;  /* amber-600 */
}