/* Stylesheet for Authentication Pages */

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

:root {
    --auth-bg-main: #f8fafc;
    --auth-bg-card: rgba(255, 255, 255, 0.8);
    --auth-border-card: rgba(255, 255, 255, 0.4);
    --auth-shadow-card: 0 20px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
    --auth-accent-blue: #0284c7;
    --auth-accent-indigo: #4f46e5;
    --auth-radius: 16px;
    --auth-radius-input: 8px;
}

body.auth-body {
    background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.05) 0%, rgba(79, 70, 229, 0.05) 90%), #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Glassmorphism Container Card */
.auth-card {
    background: var(--auth-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--auth-border-card);
    box-shadow: var(--auth-shadow-card);
    border-radius: var(--auth-radius);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-accent-blue), var(--auth-accent-indigo));
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 20px;
}

.auth-logo-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--auth-accent-blue), var(--auth-accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text-main);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

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

.auth-subtitle a {
    color: var(--auth-accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-subtitle a:hover {
    color: var(--auth-accent-indigo);
    text-decoration: underline;
}

/* Forms styling */
.auth-form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--auth-text-main);
}

.password-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--auth-text-muted);
    pointer-events: none;
    transition: fill 0.2s;
}

.auth-input-field {
    width: 100%;
    padding: 12px 16px 12px 42px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--auth-radius-input);
    outline: none;
    background-color: #ffffff;
    color: var(--auth-text-main);
    transition: all 0.3s ease;
}

.password-input-wrapper .auth-input-field {
    padding-right: 42px;
}

.auth-input-field:focus {
    border-color: var(--auth-accent-blue);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.08);
}

.auth-input-field:focus + .auth-input-icon {
    fill: var(--auth-accent-blue);
}

/* Password Toggle Icon */
.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--auth-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: fill 0.2s;
    z-index: 5;
}

.password-toggle-btn:hover {
    fill: var(--auth-accent-blue);
}

/* Alerts / Errors */
.error-list {
    list-style: none;
    margin-top: 6px;
    padding-left: 0;
}

.error-item {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.alert-container {
    width: 100%;
    max-width: 440px;
    margin-bottom: 16px;
}

.alert-box {
    padding: 14px 18px;
    border-radius: var(--auth-radius-input);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #d1fae5;
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fef3c7;
    color: #92400e;
}

/* Button & Links */
.auth-extra-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text-muted);
    cursor: pointer;
}

.remember-me input {
    width: 15px;
    height: 15px;
    accent-color: var(--auth-accent-blue);
    cursor: pointer;
}

.forgot-password {
    color: var(--auth-accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--auth-accent-indigo);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--auth-accent-blue), var(--auth-accent-indigo));
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--auth-radius-input);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: var(--auth-text-muted);
}

.auth-footer a {
    color: var(--auth-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--auth-accent-blue);
    text-decoration: underline;
}

/* Success verification card */
.success-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #10b981;
}

.success-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
