/* Auth Pages Common Styles */
:root {
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-bg: #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-text-main: #1e293b;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(
            circle at top right,
            rgba(99, 102, 241, 0.05),
            transparent
        ),
        radial-gradient(
            circle at bottom left,
            rgba(139, 92, 246, 0.05),
            transparent
        );
    background-color: var(--auth-bg);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--auth-card-bg);
    border-radius: 1.5rem;
    box-shadow: var(--auth-shadow);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text-main);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.auth-logo i,
.auth-logo svg {
    color: var(--auth-primary);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-text-main);
    margin-bottom: 0.5rem;
}

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

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-text-main);
    margin-bottom: 0.5rem;
}

.input-group-auth {
    position: relative;
}

.input-group-auth > i,
.input-group-auth > svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.form-control-auth {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.75rem;
    background-color: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: var(--auth-text-main);
    transition: all 0.2s;
}

.form-control-auth:focus {
    background-color: #fff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-control-auth:focus + i,
.form-control-auth:focus + svg {
    color: var(--auth-primary);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle i,
.password-toggle svg {
    width: 20px;
    height: 20px;
    position: static;
    transform: none;
}

.password-toggle:hover {
    color: var(--auth-primary);
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--auth-primary), #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

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

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--auth-border);
}

.divider:not(:empty)::before {
    margin-right: 0.75rem;
}

.divider:not(:empty)::after {
    margin-left: 0.75rem;
}

.otp-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.otp-input {
    width: 3.5rem;
    height: 4rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: 2px solid var(--auth-border);
    background: #f8fafc;
    transition: all 0.2s;
}

.otp-input:focus {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .auth-wrapper {
        padding: 1rem;
    }
}
