@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
    /* ── Exact brand colors from logo ── */
    --teal: #4EC0C3;
    --teal-dim: rgba(30, 206, 202, 0.18);
    --teal-glow: rgba(30, 206, 202, 0.12);
    --purple: #8B5CF6;
    --purple-dim: rgba(139, 92, 246, 0.15);
    --gold: #D4A827;
    --gold-light: #DDB830;
    --gold-dark: #A07D18;
    --gold-glow: rgba(212, 168, 39, 0.20);
    --gold-glow-sm: rgba(212, 168, 39, 0.12);

    /* ── Surfaces ── */
    --bg-deep: #070c18;
    --card-bg: rgba(10, 18, 38, 0.62);
    --card-border: rgba(255, 255, 255, 0.10);

    /* ── Inputs ── */
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.18);
    --input-focus-border: rgba(30, 206, 202, 0.45);
    --input-focus-glow: rgba(30, 206, 202, 0.10);

    /* ── Text ── */
    --text-primary: #dce5f2;
    --text-secondary: #5d6e8a;
    --text-muted: #2e3d55;

    /* ── Shape ── */
    --radius-card: 20px;
    --radius-input: 11px;
    --radius-btn: 11px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset ──────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 16px !important;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-deep);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ─── Background — 3 layered atmosphere ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 100% 70% at 10% 0%, #0a1e3a 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 90% 100%, #08152e 0%, transparent 55%),
        linear-gradient(160deg, #091524 0%, #060c1a 55%, #030810 100%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 55% 42% at 5% 8%, rgba(30, 206, 202, 0.055) 0%, transparent 65%),
        radial-gradient(ellipse 45% 38% at 95% 92%, rgba(139, 92, 246, 0.045) 0%, transparent 65%),
        radial-gradient(ellipse 35% 30% at 50% 50%, rgba(212, 168, 39, 0.018) 0%, transparent 70%);
}

body>* {
    position: relative;
    z-index: 2;
}

/* ─── Layout ─────────────────────────────── */
.login-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 0;
    pointer-events: none;
}

.blob-top {
    width: 32rem;
    height: 32rem;
    top: -10rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(30, 206, 202, 0.10) 0%, transparent 70%);
}

.blob-bottom {
    width: 28rem;
    height: 28rem;
    bottom: -10rem;
    right: -10rem;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.login-content {
    position: relative;
    z-index: 10;
    width: 86%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ─── Logo ───────────────────────────────── */
.logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.logo-wrapper {
    position: relative;
}

.logo-card img {
    display: block;
  width: 91px;
height: auto;
    transform: scale(0.75);
    transform-origin: center;
    filter: drop-shadow(0 2px 16px rgba(30, 206, 202, 0.14));
    transition: filter 0.3s;
}

.logo-card img:hover {
    filter: drop-shadow(0 4px 22px rgba(30, 206, 202, 0.26));
}

/* ─── Glass card ─────────────────────────── */
.login-card {
    width: 86%;
    max-width: 360px;
    margin: 0 auto;
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(36px) saturate(155%) brightness(1.06);
    -webkit-backdrop-filter: blur(36px) saturate(155%) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 40px 80px -16px rgba(0, 0, 0, 0.72),
        0 16px 32px -8px rgba(0, 0, 0, 0.48),
        0 4px 12px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(30, 206, 202, 0.35) 30%,
            rgba(139, 92, 246, 0.30) 65%,
            transparent 100%);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.space-y-6 {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ─── Form group ─────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    margin-bottom: 0 !important;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ─── Inputs ─────────────────────────────── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s;
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: var(--teal);
}

.input-wrapper input {
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-input);
    padding: 0 1rem 0 2.9rem;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    background: rgba(30, 206, 202, 0.028);
    border-color: var(--input-focus-border);
    box-shadow:
        0 0 0 3px var(--input-focus-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.toggle-password {
    position: absolute;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.2rem;
    transition: color 0.2s;
}

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

/* ─── Form actions ───────────────────────── */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.forgot-password {
    font-size: 0.78rem;
    font-weight: 500;
    color: #4EC0C3;
    /* exact spec */
    text-decoration: none;
    opacity: 0.85;
    /* exact spec */
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 1;
}

/* ─── Sign In button ─────────────────────── */
.submit-btn {
    width: 100%;
    position: relative;
    overflow: hidden;

    background: linear-gradient(135deg, #E3C567, #C89C35);
    /* exact spec */
    color: #2A2A2A;
    /* exact spec */
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    /* exact spec */
    letter-spacing: 0.06em;
    /* exact spec */
    text-transform: uppercase;

    padding: 0 1rem;
    height: 44px;
    border: none;
    /* exact spec */
    border-radius: var(--radius-btn);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    box-shadow: 0 6px 18px rgba(212, 175, 74, 0.25);
    /* exact spec */
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* Shimmer sweep on hover */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -115%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 248, 180, 0.14), transparent);
    transform: skewX(-18deg);
    transition: left 0.50s ease;
}

.submit-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 24px rgba(212, 175, 74, 0.35);
}

.submit-btn:hover::before {
    left: 130%;
}

.submit-btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 3px 10px rgba(212, 175, 74, 0.20);
}

.submit-btn:disabled {
    background: rgba(20, 30, 52, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled::before {
    display: none;
}

/* ─── Loader ──────────────────────────────── */
.loader {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid rgba(26, 18, 0, 0.25);
    border-top-color: #1a1200;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none;
}

/* ─── Divider ─────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0 0.75rem;
}

.divider .line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.divider span {
    padding: 0 0.85rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────── */
.footer-links {
    text-align: center;
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    opacity: 0.70;
}

.footer-links p {
    margin: 0;
}

/* ─── Bottom note ─────────────────────────── */
.bottom-note {
    text-align: center;
    margin-top: 1.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.65;
}

.bottom-note a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.80;
    transition: opacity 0.2s;
}

.bottom-note a:hover {
    opacity: 1;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 360px) {
    .login-card {
        width: 90%;
        padding: 18px;
    }
}