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

.auth-card {
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    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: 2.5rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.auth-logo svg {
    width: 36px;
    height: 36px;
    stroke: white;
    stroke-width: 2;
}

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

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

.auth-form {
    width: 100%;
}

.auth-alert {
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    align-items: flex-start;
    border: 1px solid transparent;
}

.auth-alert svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.auth-alert-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

.errorlist li {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.errorlist li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.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: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2;
}

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

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

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

.auth-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    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: 1rem;
        min-height: calc(100vh - 60px);
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
    }

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

