/**
 * HopperIT v0.2 — Auth Page Styles
 * Clean centered card · Fully responsive
 */

/* ── Layout ─────────────────────────────────── */

.auth-layout {
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1419 0%, #14213d 50%, #1a2d4f 100%);
    position: relative;
    padding: 16px;
    overflow: hidden;
}

/* Decorative blur circles */
.auth-layout::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(252, 163, 17, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.auth-layout::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 33, 61, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

/* ── Card ────────────────────────────────────── */

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 36px;
    animation: authCardIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Logo ────────────────────────────────────── */

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-logo-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.auth-logo:hover .auth-logo-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.auth-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* ── Heading ─────────────────────────────────── */

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ── Error Alert ─────────────────────────────── */

.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: var(--radius);
    color: var(--danger-dark);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.auth-error i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Form ────────────────────────────────────── */

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-form .form-input {
    height: 44px;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-input:hover {
    border-color: var(--accent);
}

.auth-form .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.1);
}

/* Password toggle */
.password-toggle {
    position: relative;
}

.password-toggle .form-input {
    padding-right: 46px;
}

.password-toggle-btn {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
    line-height: 1;
}

.password-toggle-btn:hover {
    color: var(--text);
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    height: 46px;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 8px;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.auth-submit-btn:hover {
    box-shadow: 0 0 20px rgba(252, 163, 17, 0.4), 0 8px 24px rgba(252, 163, 17, 0.25);
    transform: translateY(-2px);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* ── Responsive ──────────────────────────────── */

/* Tablet landscape and up: slightly larger card */
@media (min-width: 480px) {
    .auth-card {
        padding: 48px 44px;
    }
}

/* Small mobile: tighter padding, full-width feel */
@media (max-width: 400px) {
