/* Lastech Academy — Premium sign-in */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

/* Brand wordmark (standalone — no site.css) */
.la-brand-wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.1;
}
.la-brand-wordmark--nav { font-size: 1rem; }
.la-brand-wordmark__lastech {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0a1628;
}
.la-brand-wordmark__academy {
    font-weight: 700;
    font-size: 0.52em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #0052FF;
    margin-top: 0.1em;
}

/* ——— Page shell ——— */
.auth-body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.signin {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
    .signin {
        padding: 4.5rem 1.5rem 2rem;
        align-items: center;
    }
}

/* ——— Background ——— */
.signin__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.signin__bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 130, 251, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(0, 198, 255, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(1, 212, 6, 0.06) 0%, transparent 45%),
        linear-gradient(165deg, #eef4ff 0%, #f8fafc 40%, #e8f2fc 100%);
}

html:not(.light) .signin__bg-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 130, 251, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(0, 198, 255, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, #030810 0%, #060d18 50%, #0a1628 100%);
}

.signin__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 130, 251, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 130, 251, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 100%);
}

html:not(.light) .signin__bg-grid {
    background-image:
        linear-gradient(rgba(0, 198, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 198, 255, 0.05) 1px, transparent 1px);
}

.signin__bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: signin-drift 12s ease-in-out infinite;
}

.signin__bg-orb--1 {
    width: 400px; height: 400px;
    background: rgba(0, 130, 251, 0.25);
    top: -10%; left: -5%;
}
.signin__bg-orb--2 {
    width: 350px; height: 350px;
    background: rgba(0, 198, 255, 0.2);
    bottom: -5%; right: -5%;
    animation-delay: -4s;
}
.signin__bg-orb--3 {
    width: 200px; height: 200px;
    background: rgba(99, 102, 241, 0.15);
    top: 40%; right: 30%;
    animation-delay: -7s;
}

@keyframes signin-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 10px) scale(0.97); }
}

/* ——— Chrome ——— */
.signin__chrome {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
}

.signin__home {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s, transform 0.25s;
}

.signin__home:hover {
    box-shadow: 0 4px 20px rgba(0, 130, 251, 0.12);
    transform: translateY(-1px);
}

.signin__home img,
.signin__home-logo {
    width: auto;
    height: 2.75rem;
    object-fit: contain;
}

html:not(.light) .signin__home {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.signin__theme {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.signin__theme:hover {
    color: #0082fb;
    border-color: #0082fb;
    transform: translateY(-1px);
}

html:not(.light) .signin__theme {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* ——— Card container ——— */
.signin__wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    animation: signin-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 768px) {
    .signin__wrap { max-width: 52rem; }
}

@media (min-width: 1024px) {
    .signin__wrap { max-width: 64rem; }
}

@keyframes signin-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.signin__card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 8px 16px rgba(15, 23, 42, 0.04),
        0 32px 80px -16px rgba(0, 130, 251, 0.22);
}

html:not(.light) .signin__card {
    background: #0c1929;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 32px 80px -16px rgba(0, 0, 0, 0.5);
}

/* Tablet landscape + Desktop: side by side */
@media (min-width: 768px) {
    .signin__card {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        min-height: 30rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .signin__card {
        grid-template-columns: 1.08fr 0.92fr;
        min-height: 34rem;
        border-radius: 1.75rem;
    }
}

/* ——— Brand panel ——— */
.signin__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, #04101f 0%, #0a1e3d 40%, #0d2847 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .signin__brand { padding: 2rem 1.75rem; }
}

@media (min-width: 1024px) {
    .signin__brand { padding: 3rem 2.75rem; }
}

.signin__brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 198, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 198, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

.signin__brand-inner {
    position: relative;
    z-index: 2;
}

.signin__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #67e8f9;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.2);
}

.signin__pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #01d406;
    box-shadow: 0 0 8px rgba(1, 212, 6, 0.8);
    animation: signin-pulse 2s ease-in-out infinite;
}

@keyframes signin-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.signin__headline {
    font-size: clamp(1.35rem, 4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #f8fafc;
    margin-bottom: 1rem;
    max-width: none;
}

@media (min-width: 768px) {
    .signin__headline { max-width: 16rem; }
}

@media (min-width: 1024px) {
    .signin__headline { max-width: 18rem; }
}

.signin__headline em {
    font-style: normal;
    display: block;
    margin-top: 0.15em;
    background: linear-gradient(120deg, #38bdf8 0%, #00c6ff 40%, #01d406 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.signin__tagline {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 20rem;
    margin-bottom: 2rem;
}

.signin__metrics {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.signin__metric {
    flex: 1;
    padding: 0.85rem 0.65rem;
    border-radius: 0.85rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.signin__metric b {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.signin__metric small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.signin__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.signin__list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
}

.signin__list svg {
    flex-shrink: 0;
    color: #01d406;
}

/* Decorative rings + logo */
.signin__brand-deco {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 14rem;
    height: 14rem;
    pointer-events: none;
}

@media (max-width: 1023px) {
    .signin__brand-deco { display: none; }
}

.signin__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 198, 255, 0.15);
}

.signin__ring--1 {
    inset: 0;
    animation: signin-spin 20s linear infinite;
}

.signin__ring--2 {
    inset: 1.5rem;
    border-color: rgba(0, 130, 251, 0.2);
    animation: signin-spin 15s linear infinite reverse;
}

@keyframes signin-spin {
    to { transform: rotate(360deg); }
}

.signin__brand-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 6.5rem;
    object-fit: contain;
    opacity: 0.4;
    filter: drop-shadow(0 0 30px rgba(0, 130, 251, 0.4));
}

/* ——— Form panel ——— */
.signin__form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #fff;
}

html:not(.light) .signin__form-panel {
    background: #0c1929;
}

@media (min-width: 768px) {
    .signin__form-panel { padding: 2rem 1.75rem; }
}

@media (min-width: 1024px) {
    .signin__form-panel { padding: 3rem 2.75rem; }
}

.signin__form-inner {
    width: 100%;
    max-width: 22rem;
}

.signin__form-head {
    margin-bottom: 2rem;
}

.signin__form-head h2 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

html:not(.light) .signin__form-head h2 {
    color: #f8fafc;
}

.signin__form-head p {
    font-size: 0.9rem;
    color: #64748b;
}

.signin__group {
    margin-bottom: 1.15rem;
}

.signin__group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

html:not(.light) .signin__group label {
    color: #94a3b8;
}

.signin__field {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 0.8rem;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.signin__field:focus-within {
    background: #fff;
    border-color: #0082fb;
    box-shadow: 0 0 0 4px rgba(0, 130, 251, 0.1);
}

html:not(.light) .signin__field {
    background: rgba(255, 255, 255, 0.05);
}

html:not(.light) .signin__field:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: #00c6ff;
    box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.1);
}

.signin__field--error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.signin__field-icon {
    flex-shrink: 0;
    margin-left: 0.9rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.signin__field:focus-within .signin__field-icon {
    color: #0082fb;
}

.signin__field input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.925rem;
    color: #0f172a;
    outline: none;
}

.signin__field input::placeholder {
    color: #94a3b8;
}

html:not(.light) .signin__field input {
    color: #f1f5f9;
}

.signin__field-input--pw {
    padding-right: 0.25rem !important;
}

.signin__eye {
    flex-shrink: 0;
    display: flex;
    padding: 0.5rem 0.85rem 0.5rem 0.25rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.signin__eye:hover { color: #0082fb; }

.signin__err {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #dc2626;
}

.signin__check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
    cursor: pointer;
    user-select: none;
}

.signin__check input {
    width: 1rem;
    height: 1rem;
    accent-color: #0082fb;
    cursor: pointer;
}

.signin__check span {
    font-size: 0.85rem;
    color: #64748b;
}

.signin__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #006fd6 0%, #0082fb 50%, #00b4e8 100%);
    box-shadow: 0 4px 16px rgba(0, 130, 251, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.signin__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 130, 251, 0.45);
    filter: brightness(1.05);
}

.signin__btn:active {
    transform: translateY(0);
}

.signin__foot {
    margin-top: 1.75rem;
    text-align: center;
}

.signin__foot p {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.signin__foot a {
    color: #0082fb;
    font-weight: 700;
    text-decoration: none;
}

.signin__foot a:hover {
    text-decoration: underline;
}

html:not(.light) .signin__foot a {
    color: #38bdf8;
}

.signin__back {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8 !important;
    text-decoration: none !important;
}

.signin__back:hover {
    color: #0082fb !important;
}

.signin__copy {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ——— Mobile only (stacked) ——— */
@media (max-width: 767px) {
    .signin {
        padding: 4.25rem 0.75rem 1.25rem;
        align-items: flex-start;
    }

    .signin__chrome {
        padding: 0.75rem 1rem;
    }

    .signin__home span {
        display: none;
    }

    .signin__home {
        padding: 0.35rem;
    }

    .signin__card {
        border-radius: 1rem;
    }

    .signin__brand {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .signin__pill {
        font-size: 0.62rem;
        padding: 0.3rem 0.65rem;
        margin-bottom: 1rem;
    }

    .signin__headline {
        font-size: 1.3rem;
        margin-bottom: 0.65rem;
    }

    .signin__tagline {
        font-size: 0.82rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .signin__metrics {
        gap: 0.45rem;
        margin-bottom: 0;
    }

    .signin__metric {
        padding: 0.55rem 0.35rem;
        border-radius: 0.65rem;
    }

    .signin__metric b {
        font-size: 1rem;
    }

    .signin__metric small {
        font-size: 0.55rem;
    }

    .signin__list { display: none; }

    .signin__form-panel {
        padding: 1.5rem 1.15rem 1.75rem;
    }

    .signin__form-head {
        margin-bottom: 1.35rem;
    }

    .signin__form-head h2 {
        font-size: 1.35rem;
    }

    .signin__form-head p {
        font-size: 0.82rem;
    }

    .signin__form-inner {
        max-width: none;
    }

    .signin__field input {
        font-size: 16px; /* prevent iOS zoom */
        padding: 0.75rem 0.85rem;
    }

    .signin__btn {
        padding: 0.85rem 1.25rem;
    }

    .signin__copy {
        margin-top: 1rem;
        font-size: 0.7rem;
    }
}

/* ——— Tablet stacked tweaks (portrait, if ever <768) ——— */
@media (min-width: 768px) and (max-width: 1023px) {
    .signin__headline { font-size: 1.45rem; }
    .signin__tagline { font-size: 0.85rem; margin-bottom: 1.25rem; }
    .signin__metric b { font-size: 1.1rem; }
    .signin__list { display: none; }
    .signin__list li { font-size: 0.8rem; }
    .signin__form-head h2 { font-size: 1.45rem; }
}
