/* ---------- Design Tokens ---------- */
:root {
    --peach: #ff6e3b;
    --peach-glow: rgba(255, 110, 59, 0.35);
    --peach-soft: rgba(255, 110, 59, 0.12);
    --grey: #414042;
    --bg-dark: #0a0a0c;
    --bg-surface: #111114;
    --bg-card: rgba(22, 22, 28, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f0f2;
    --text-secondary: rgba(240, 240, 242, 0.55);
    --text-muted: rgba(240, 240, 242, 0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Animated Background Orbs ---------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--peach-glow), transparent 70%);
    top: -10%;
    left: -5%;
    animation: float-1 14s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 110, 59, 0.18), transparent 70%);
    bottom: -8%;
    right: 10%;
    animation: float-2 18s ease-in-out infinite;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 110, 59, 0.12), transparent 70%);
    top: 50%;
    left: 40%;
    animation: float-3 20s ease-in-out infinite;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, 40px) scale(1.08);
    }

    66% {
        transform: translate(-30px, 60px) scale(0.95);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50px, -30px) scale(1.05);
    }

    66% {
        transform: translate(40px, -50px) scale(0.9);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(70px, -40px) scale(1.1);
    }
}

/* ---------- Layout ---------- */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding: 0 4rem;
    gap: 2rem;
}

/* ---------- Brand Panel (Left) ---------- */
.brand-panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    overflow: hidden;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    animation: fade-in-up 0.7s 0.2s forwards;
}

.brand-name {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fade-in-up 0.7s 0.35s forwards;
}

.brand-black {
    color: var(--text-primary);
}

.brand-box {
    color: var(--peach);
}

.brand-learning {
    display: block;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-in-up 0.7s 0.5s forwards;
}

/* Course Pills */
.course-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fade-in-up 0.7s 0.65s forwards;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition);
}

.pill:hover {
    border-color: rgba(255, 110, 59, 0.3);
    color: var(--peach);
    background: var(--peach-soft);
}

.pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--peach);
}

/* Decorative grid */
.grid-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: var(--border-glass);
}

.grid-line:nth-child(1) {
    top: 25%;
    left: 0;
    right: 0;
    height: 1px;
}

.grid-line:nth-child(2) {
    top: 75%;
    left: 0;
    right: 0;
    height: 1px;
}

.grid-line:nth-child(3) {
    left: 30%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.grid-line:nth-child(4) {
    left: 70%;
    top: 0;
    bottom: 0;
    width: 1px;
}

/* ---------- Login Panel (Right) ---------- */
.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

/* ---------- Glassmorphic Card ---------- */


.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---------- Error Message ---------- */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: var(--radius-sm);
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ---------- Form ---------- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.input-group.focused .input-label {
    color: var(--peach);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
    flex-shrink: 0;
    pointer-events: none;
}

.input-group.focused .input-icon {
    color: var(--peach);
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 2.8rem;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

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

.input-wrapper input:focus {
    border-color: rgba(255, 110, 59, 0.45);
    background: rgba(255, 110, 59, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 110, 59, 0.08);
}

/* Password toggle */
.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

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

/* ---------- Login Button ---------- */
.btn-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--peach), #e85a2a);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 110, 59, 0.35);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 110, 59, 0.2);
}

.btn-arrow {
    transition: transform var(--transition);
}

.btn-login:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-loader svg {
    animation: spin 1s linear infinite;
}

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

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

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

.divider-text {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ---------- Google Button ---------- */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.google-icon {
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.login-footer {
    position: absolute;
    bottom: 1.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ---------- Animations ---------- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    html, body {
        overflow: auto;
        height: auto;
    }

    .login-container {
        flex-direction: column;
        height: auto;
        padding: 2rem 1rem;
        gap: 0;
    }

    .brand-panel, .brand-content {
        display: contents;
    }

    .logo-mark {
        order: 1;
        margin-top: 1rem;
        margin-bottom: 2rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .login-panel {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        padding: 0 0.5rem 1rem 0.5rem;
    }

    .hero-illustration {
        order: 3;
        margin: 2rem auto !important;
        display: flex;
        justify-content: center;
    }

    .brand-tagline {
        order: 4;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .course-pills {
        order: 5;
        margin-bottom: 3rem;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .brand-learning {
        font-size: 1.2rem;
    }

    .grid-lines {
        display: none;
    }

    .login-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .login-footer {
        position: relative;
        bottom: auto;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.6rem;
    }

    .brand-learning {
        font-size: 1rem;
    }

    .course-pills {
        gap: 0.35rem;
    }

    .pill {
        font-size: 0.65rem;
        padding: 0.3rem 0.65rem;
    }
    .liquidGlass-wrapper.dock{
        padding: 0 !important;
    }
}


/* =========================================================
   LIQUID GLASS EFFECT BASE (from codepen)
   ========================================================= */

.liquidGlass-wrapper {
    position: relative;
    display: flex;
    font-weight: 600;
    overflow: hidden;
    color: black;
    cursor: pointer;
    /* box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1); */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.liquidGlass-effect {
    position: absolute;
    z-index: 0;
    inset: 0;
    backdrop-filter: blur(3px);
    filter: url(#glass-distortion);
    overflow: hidden;
    isolation: isolate;
}

.liquidGlass-tint {
    z-index: 1;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
}

.liquidGlass-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    /* box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5); */
}

.liquidGlass-text {
    z-index: 3;
    font-size: 2rem;
    color: black;
}

@keyframes moveBackground {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 0% -500%;
    }
}


/* =========================================================
   OVERRIDES TO PRESERVE LIQUID GLASS AND FIX LAYOUT
   ========================================================= */
body {
    background: url("../images/bg_image/bg_1.png") center center;
    background-size: 1500px;
    animation: moveBackground 300s linear infinite;
    display: block !important;
}

.liquidGlass-wrapper {
    flex-direction: column !important;
    box-sizing: border-box !important;
    cursor: default !important;
}

.liquidGlass-wrapper.dock {
    padding: 2.5rem 2rem ;
    /* border-radius: var(--radius-lg) !important; */
    /* background: rgba(0, 0, 0, 0.4) !important; */
    /* border: 1px solid var(--border-glass) !important; */
    /* box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5) !important; */
}

.liquidGlass-wrapper.dock:hover {
    padding: 2.5rem 2rem !important;
    border-radius: var(--radius-lg) !important;
}

.liquidGlass-wrapper.menu {
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    padding: 0 !important;
}

.liquidGlass-wrapper.menu:hover {
    padding: 0 !important;
    border-radius: var(--radius-md) !important;
}

.liquidGlass-text {
    width: 100% !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
    padding: 1.5rem !important;
    position: relative !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
}

.liquidGlass-tint {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Tone down the white glare for dark theme */
}

.login-card {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 0 !important;
}