/* Auth pages — login.html & register.html */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

/* Animated gradient blobs */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: blobMove 12s ease-in-out infinite alternate;
}

.auth-page::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.auth-page::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -6s;
}

@keyframes blobMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(40px, 30px) scale(1.08);
    }
}

/* Grid dots background */
.auth-page {
    background-image:
        radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Card */
.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    position: relative;
    z-index: 1;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-glow);
}

.auth-logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Heading */
.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Submit button */
.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Error message */
.auth-error {
    background: var(--red-soft);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--red);
    display: none;
}

.auth-error.show {
    display: block;
}

/* Password toggle */
.input-wrapper {
    position: relative;
}

.input-wrapper .form-input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-secondary);
}