/* Auth Page Styles */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 100%);
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-12);
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.auth-logo {
    width: var(--space-16);
    height: var(--space-16);
    margin: 0 auto var(--space-6);
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.auth-logo svg {
    width: var(--icon-xl);
    height: var(--icon-xl);
    stroke: white;
    stroke-width: 2;
}

.auth-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-form {
    width: 100%;
}

.auth-alert {
    margin-bottom: var(--space-5);
    padding: var(--space-3) calc(14.4px * var(--space-scale));
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-3);
    row-gap: var(--space-1);
    align-items: flex-start;
    border: 1px solid transparent;
}

.auth-alert svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
    margin-top: 2px;
}

.auth-alert-success {
    background: var(--alert-success-bg-light);
    border-color: var(--alert-success-border);
    color: var(--alert-success-text);
}

.auth-alert-success strong {
    font-weight: 600;
}

.form-error {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.form-error svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
    flex-shrink: 0;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.errorlist li {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.errorlist li svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
    flex-shrink: 0;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: white;
    background: var(--primary-color);
    margin-top: var(--space-2);
}

.auth-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-button svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
    stroke: white;
    stroke-width: 2;
}

.auth-button--outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
    margin-top: var(--space-3);
    text-decoration: none;
}

.auth-button--outline:hover {
    background: var(--primary-color);
    color: white;
}

.auth-button--outline svg {
    stroke: currentColor;
}

.auth-footer {
    margin-top: var(--space-8);
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-light);
}

.auth-footer-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Loading state */
.auth-button.loading {
    position: relative;
    color: transparent;
}

.auth-button.loading::after {
    content: '';
    position: absolute;
    width: var(--icon-md);
    height: var(--icon-md);
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: var(--radius-full);
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: var(--space-4);
        min-height: calc(100vh - 60px);
    }

    .auth-card {
        padding: var(--space-8) var(--space-6);
    }

    .auth-title {
        font-size: var(--text-2xl);
    }

    .auth-logo {
        width: var(--space-14);
        height: var(--space-14);
    }

    .auth-logo svg {
        width: 32px;
        height: 32px;
    }
}
