/* Auth page content: centered form on the public page background */
.auth-page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height, 76px));
    padding: 3rem 1rem;
}

.login-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
    border: 1px solid #e2e8f0;
}

.login-logo {
    margin-bottom: 2.0rem;
    text-align: center;
}

.login-logo-img {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #155724;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.login-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.15s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.15s ease;
}

.login-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

.login-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 480px) {
    .login-container {
        margin: 0 0.5rem;
        padding: 2rem;
    }

    .auth-page-content {
        padding: 2rem 0.5rem;
    }
}
