
/* ==================================================
   MANIASLT - LOGIN PAGE
   Theme: White / Sky Blue / Navy / Red Accent
================================================== */


/* ==================================================
   1. LOGIN PAGE BACKGROUND
================================================== */

.login-page {
    min-height: 720px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(56, 189, 248, 0.13),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f0f9ff 55%,
            #e0f2fe 100%
        );
}

.login-page > .container {
    width: 100%;
}


/* ==================================================
   2. MAIN LOGIN LAYOUT
================================================== */

.login-layout {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(7, 28, 51, 0.10),
        0 4px 15px rgba(7, 28, 51, 0.03);
}


/* ==================================================
   3. LEFT SIDE - WELCOME
================================================== */

.login-welcome {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 560px;

    padding: 55px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(56, 189, 248, 0.20),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #071c33 0%,
            #0b2a4a 65%,
            #075985 100%
        );

    overflow: hidden;
}


/* Decorative background */

.login-welcome::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -130px;
    right: -130px;

    border-radius: 50%;

    background: rgba(56, 189, 248, 0.07);

    pointer-events: none;
}

.login-welcome::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    bottom: -130px;
    left: -100px;

    border-radius: 50%;

    background: rgba(239, 51, 64, 0.07);

    pointer-events: none;
}

.login-welcome-content {
    position: relative;
    z-index: 2;
}


/* Welcome label */

.login-label {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    margin-bottom: 25px;
    padding: 7px 15px;

    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 30px;

    background: rgba(56, 189, 248, 0.10);

    color: #7dd3fc;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* Welcome title */

.login-welcome h1 {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;

    line-height: 1.12;
    letter-spacing: -1.5px;
}

.login-welcome h1 span {
    display: block;

    margin-top: 4px;

    color: #38bdf8;
}


/* Welcome description */

.login-welcome-content > p {
    max-width: 390px;

    margin: 0;

    color: #cbd5e1;

    font-size: 15px;
    line-height: 1.8;
}


/* ==================================================
   4. LEFT SIDE - FEATURES
================================================== */

.login-features {
    display: grid;
    gap: 18px;

    margin-top: 38px;
}

.login-feature {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #e2e8f0;

    font-size: 14px;
    font-weight: 600;
}

.login-feature > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(56, 189, 248, 0.15);

    color: #38bdf8;

    font-size: 14px;
    font-weight: 800;
}


/* ==================================================
   5. RIGHT SIDE - LOGIN CARD
================================================== */

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: 55px;

    background: #ffffff;
}


/* Brand logo */

.login-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 180px;
    max-height: 55px;

    margin-bottom: 35px;

    object-fit: contain;
}


/* Small label */

.login-card-label {
    display: block;

    margin-bottom: 8px;

    color: #0284c7;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


/* Login heading */

.login-card h2 {
    margin: 0 0 10px;

    color: #071c33;

    font-size: 32px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -1px;
}


/* Login subtitle */

.login-card-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.7;
}


/* ==================================================
   6. LOGIN FORM
================================================== */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 22px;

    margin-top: 32px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;

    gap: 9px;

    min-width: 0;
}


/* Input labels */

.login-form .form-group label {
    color: #071c33;

    font-size: 14px;
    font-weight: 700;
}


/* Username and password inputs */

.login-form .form-group input {
    display: block;

    width: 100%;
    min-width: 0;
    height: 52px;

    padding: 0 16px;

    border: 1px solid #cbd5e1;
    border-radius: 12px;

    outline: none;

    background: #f8fafc;

    color: #071c33;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Placeholder */

.login-form .form-group input::placeholder {
    color: #94a3b8;

    font-size: 13px;
    font-weight: 400;
}


/* Input hover */

.login-form .form-group input:hover {
    border-color: #94a3b8;

    background: #ffffff;
}


/* Input focus */

.login-form .form-group input:focus {
    background: #ffffff;

    border-color: #38bdf8;

    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.12);
}


/* Password wrapper */

.login-form .password-field {
    position: relative;
    width: 100%;
}

.login-form .password-field input {
    width: 100%;
}


/* Browser autofill appearance */

.login-form input:-webkit-autofill {
    -webkit-text-fill-color: #071c33;

    box-shadow:
        0 0 0 1000px #f8fafc inset;

    transition:
        background-color 5000s ease-in-out 0s;
}


/* ==================================================
   7. LOGIN BUTTON
================================================== */

.login-submit {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    margin-top: 5px;
    padding: 12px 44px;

    border: 1px solid transparent;
    border-radius: 12px;

    background: #38bdf8;

    color: #071c33;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    text-align: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* Button arrow */

.login-submit span {
    position: absolute;

    right: 20px;

    font-size: 21px;
    font-weight: 500;

    transition: transform 0.2s ease;
}


/* Button hover */

.login-submit:hover {
    background: #0ea5e9;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(14, 165, 233, 0.22);
}

.login-submit:hover span {
    transform: translateX(3px);
}


/* Button active */

.login-submit:active {
    transform: translateY(0);

    box-shadow: none;
}


/* Keyboard accessibility */

.login-submit:focus-visible {
    outline: 3px solid #075985;
    outline-offset: 3px;
}


/* ==================================================
   8. REGISTER LINK
================================================== */

.login-bottom {
    margin-top: 25px;

    text-align: center;
}

.login-bottom p {
    display: inline;

    margin: 0;

    color: #64748b;

    font-size: 13px;
}

.login-bottom a {
    display: inline-block;

    margin-left: 5px;

    color: #0284c7;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    transition: color 0.2s ease;
}

.login-bottom a:hover {
    color: #ef3340;

    text-decoration: underline;
}


/* ==================================================
   9. TABLET RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .login-welcome,
    .login-card {
        padding: 35px;
    }

    .login-welcome h1 {
        font-size: 38px;
    }

    .login-card h2 {
        font-size: 29px;
    }

}


/* ==================================================
   10. MOBILE RESPONSIVE
================================================== */

@media (max-width: 700px) {

    .login-page {
        min-height: auto;

        padding: 30px 0 55px;
    }

    .login-page > .container {
        padding: 0;
    }

    .login-layout {
        grid-template-columns: 1fr;

        max-width: 480px;

        border-radius: 18px;
    }

    .login-welcome {
        min-height: auto;

        padding: 35px 28px;
    }

    .login-label {
        margin-bottom: 20px;
    }

    .login-welcome h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .login-welcome-content > p {
        font-size: 14px;
        line-height: 1.7;
    }

    .login-features {
        gap: 12px;
        margin-top: 25px;
    }

    .login-feature {
        font-size: 13px;
    }

    .login-card {
        padding: 35px 28px 40px;
    }

    .login-logo {
        max-width: 160px;

        margin-bottom: 25px;
    }

    .login-card h2 {
        font-size: 28px;
    }

    .login-form {
        margin-top: 28px;
        gap: 20px;
    }

    .login-form .form-group input {
        height: 50px;

        /* Prevent iOS input auto-zoom */
        font-size: 16px;
    }

    .login-submit {
        min-height: 52px;
    }

}


/* ==================================================
   11. SMALL MOBILE
================================================== */

@media (max-width: 380px) {

    .login-page {
        padding: 20px 0 40px;
    }

    .login-welcome,
    .login-card {
        padding: 28px 20px;
    }

    .login-welcome h1 {
        font-size: 30px;
    }

    .login-logo {
        max-width: 145px;
    }

    .login-card h2 {
        font-size: 25px;
    }

    .login-feature {
        font-size: 12px;
    }

}


/* ==================================================
   12. ACCESSIBILITY
================================================== */

@media (prefers-reduced-motion: reduce) {

    .login-submit,
    .login-submit span,
    .login-form input {
        transition: none;
    }

}