
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   ACERSMP LOGIN THEME
======================================== */

:root {
    --background: #060c16;
    --card: rgba(12, 23, 39, 0.94);
    --panel: #0c1727;
    --border: rgba(138, 207, 255, 0.13);
    --text: #eff8ff;
    --muted: #91a7bd;
    --blue: #59caff;
    --blue-bright: #8be0ff;
    --blue-light: #b7e8ff;
    --input: #081321;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    color: var(--text);

    background:
        radial-gradient(
            ellipse at 50% 0%,
            #12305255,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 35%,
            #10243b,
            #07111f 45%,
            var(--background) 80%
        );

    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 4px;
}

/* ========================================
   BACKGROUND GLOW
======================================== */

.background-glow {
    position: fixed;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.13;
    pointer-events: none;
}

.glow-one {
    top: 10%;
    left: -180px;
    background: #168cff;
}

.glow-two {
    right: -180px;
    bottom: 5%;
    background: #00d5ff;
}

/* ========================================
   HEADER
======================================== */

.login-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ========================================
   ACERSMP BRAND
======================================== */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.brand:hover {
    opacity: 0.95;
}

.header-logo-frame {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.header-logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;

    transition:
        transform 0.35s var(--ease),
        filter 0.35s ease;
}

.brand:hover .header-logo {
    transform: rotate(-7deg) scale(1.08);
    filter: drop-shadow(0 0 10px #59caff80);
}

.brand-name {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1px;
}

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

.brand-accent {
    color: var(--blue);
    text-shadow: 0 0 18px #59caff20;
}

.brand-subtitle {
    display: block;
    margin-top: 5px;
    color: #7f9ab6;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.back-home {
    color: #b8c6d8;
    font-size: 13px;
    font-weight: 600;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.back-home:hover {
    color: var(--blue);
    transform: translateX(-2px);
}

.back-home span {
    margin-right: 5px;
}

/* ========================================
   LOGIN LAYOUT
======================================== */

.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px 55px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 38px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow:
        0 25px 80px #0000004d,
        inset 0 1px 0 #ffffff06;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    animation: card-enter 0.6s var(--ease) both;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        #59caff70,
        transparent
    );

    pointer-events: none;
}

/* ========================================
   MAIN LOGIN LOGO
   Small framed logo with hover effect
======================================== */

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* The border belongs to this frame, not the image */
.login-logo-frame {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    padding: 8px;

    border: 1px solid #59caff80;
    border-radius: 18px;

    background: linear-gradient(
        145deg,
        #122943,
        #091321
    );

    box-shadow:
        0 0 25px #168bff20,
        inset 0 1px 0 #ffffff12;

    transform: rotate(-3deg);

    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.login-logo-frame:hover {
    transform: rotate(0deg) scale(1.04);
    border-color: var(--blue-bright);

    box-shadow:
        0 0 35px #168bff45,
        inset 0 1px 0 #ffffff20;
}

.login-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;

    transition: filter 0.35s ease;
}

.login-logo-frame:hover .login-logo {
    filter: drop-shadow(0 0 6px #59caff50);
}

/* ========================================
   LOGIN HEADING
======================================== */

.login-card h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 34px);
    line-height: 1.2;
    letter-spacing: -1.4px;
    text-align: center;
    font-weight: 900;
}

.login-card h1 span {
    color: var(--blue);
}

.login-description {
    margin-top: 12px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

/* ========================================
   FORM FIELDS
======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #dbe6f5;
    font-size: 12px;
    font-weight: 600;
}

.form-group input {
    display: block;
    width: 100%;
    height: 49px;
    padding: 0 14px;

    color: var(--text);
    background: var(--input);

    border: 1px solid rgba(135, 180, 220, 0.17);
    border-radius: 10px;
    outline: none;
    font-size: 13px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.form-group input::placeholder {
    color: #596a7f;
}

.form-group input:hover {
    border-color: #59caff60;
}

.form-group input:focus {
    border-color: var(--blue);
    background: #091726;

    box-shadow:
        0 0 0 3px #59caff1a,
        0 0 20px #59caff08;
}

/* Browser autofill */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px var(--input) inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* ========================================
   LOGIN STATUS MESSAGE
======================================== */

.login-message {
    min-height: 0;
    margin-bottom: 12px;
    color: #ff9999;
    font-size: 12px;
    line-height: 1.6;
}

.login-message:empty {
    display: none;
}

/* ========================================
   SIGN IN BUTTON
======================================== */

.login-button {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: 49px;
    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    overflow: hidden;
    color: #04111d;

    background: linear-gradient(
        120deg,
        #91e4ff,
        #49b9ff
    );

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;
    cursor: pointer;

    box-shadow: 0 5px 22px #36aaff20;

    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.login-button::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: -60%;
    left: -100%;

    width: 65%;
    height: 220%;

    background: linear-gradient(
        90deg,
        transparent,
        #ffffff70,
        transparent
    );

    transform: rotate(25deg);
    transition: left 0.65s var(--ease);
}

.login-button:hover::before {
    left: 150%;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px #36aaff55;
    filter: brightness(1.05);
}

.login-button:active {
    transform: translateY(0) scale(0.98);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.login-button:disabled::before {
    display: none;
}

.button-arrow {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.login-button:hover .button-arrow {
    transform: translate(2px, -2px);
}

/* ========================================
   DIVIDER
======================================== */

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;

    color: #65758a;
    font-size: 10px;
    font-weight: 700;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(135, 180, 220, 0.13);
}

/* ========================================
   REGISTER BUTTON
======================================== */

.register-button {
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(135, 180, 220, 0.2);
    border-radius: 10px;

    color: #dce9f8;
    background: #ffffff04;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s var(--ease);
}

.register-button:hover {
    color: var(--blue-bright);
    background: #59caff12;
    border-color: #59caff66;
    transform: translateY(-2px);
}

.register-button:active {
    transform: translateY(0) scale(0.98);
}

/* ========================================
   TERMS TEXT
======================================== */

.terms-text {
    margin-top: 24px;
    color: #68788d;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

/* ========================================
   FOOTER
======================================== */

.login-footer {
    padding: 18px 20px 24px;
    text-align: center;
    border-top: 1px solid #ffffff0d;
    background: #04091140;
}

.login-footer p {
    color: #617187;
    font-size: 10px;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

/* ========================================
   TABLET
======================================== */

@media (max-width: 768px) {
    .login-header {
        padding: 22px 24px;
    }

    .login-page {
        padding: 25px 20px 40px;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 520px) {
    .login-header {
        padding: 20px;
        gap: 12px;
    }

    .brand {
        gap: 9px;
    }

    .header-logo-frame,
    .header-logo {
        width: 36px;
        height: 36px;
    }

    .header-logo-frame {
        flex-basis: 36px;
    }

    .brand-name {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .brand-subtitle {
        font-size: 7px;
        letter-spacing: 1.6px;
    }

    .back-home {
        font-size: 12px;
        white-space: nowrap;
    }

    .login-page {
        padding: 20px 15px 35px;
    }

    .login-card {
        padding: 30px 23px;
        border-radius: 18px;
    }

    /* Keep the main logo small on mobile */
    .login-logo-frame {
        width: 90px;
        height: 90px;
        flex-basis: 90px;
        padding: 8px;
        border-radius: 18px;
    }

    .login-description {
        font-size: 12px;
    }

    .login-footer {
        padding: 18px 15px 22px;
    }
}

/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 380px) {
    .login-header {
        padding: 18px 15px;
    }

    .brand {
        gap: 7px;
    }

    .brand-name {
        font-size: 16px;
    }

    .back-home {
        font-size: 11px;
    }

    .login-card {
        padding: 27px 19px;
    }

    .login-logo-frame {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
        padding: 7px;
        border-radius: 16px;
    }

    .login-card h1 {
        font-size: 28px;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .login-logo-frame {
        transform: none;
    }

    .login-logo-frame:hover,
    .brand:hover .header-logo,
    .login-button:hover,
    .register-button:hover {
        transform: none;
    }
}
