﻿:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --text-dark: #172033;
    --text-muted: #7b8498;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #f4f6fc;
    color: var(--text-dark);
}
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}
.login-card {
    width: 100%;
    max-width: 1000px;
    min-height: 590px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(35, 44, 85, .12);
}
.login-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: white;
    overflow: hidden;
    background: radial-gradient(circle at 85% 15%, rgba(129, 140, 248, .7), transparent 32%), linear-gradient(145deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
}
.login-banner::before, .login-banner::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    pointer-events: none;
}
.login-banner::before {
    width: 340px;
    height: 340px;
    right: -150px;
    bottom: -100px;
}
.login-banner::after {
    width: 230px;
    height: 230px;
    right: -95px;
    bottom: -45px;
}
.brand, .banner-content, .banner-footer {
    position: relative;
    z-index: 1;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: .3px;
}
.brand-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255,255,255,.17);
    border: 1px solid rgba(255,255,255,.25);
}
.banner-content {
    margin: 55px 0;
}
.banner-content h1 {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.banner-content p {
    max-width: 360px;
    color: #e0e7ff;
    font-size: 15px;
    line-height: 1.9;
}
.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 30px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
}
.banner-footer {
    color: #dbeafe;
    font-size: 12px;
}
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.login-form {
    width: 100%;
    max-width: 360px;
}
.welcome-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    margin-bottom: 12px;
}
.login-title {
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -1px;
    margin-bottom: 10px;
}
.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.form-label {
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 9px;
}
.form-control {
    min-height: 49px;
    border: 1px solid #e1e5ef;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    background-color: #fff;
}
.form-control::placeholder {
    color: #a2aabc;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .22rem rgba(79,70,229,.12);
}
.password-group .form-control {
    border-right: 0;
    border-radius: 10px 0 0 10px;
}
.password-group .btn {
    border: 1px solid #e1e5ef;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: #7b8498;
    background: white;
    padding: 0 14px;
}
.password-group .form-control:focus + .btn {
    border-color: var(--primary);
}
.form-check-input {
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-label {
    color: #687187;
    font-size: 12px;
    cursor: pointer;
}
.login-button {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(79,70,229,.2);
    transition: background .2s, transform .2s;
}
.login-button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}
.security-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 26px;
    color: #8a93a6;
    font-size: 11px;
}
.copyright {
    text-align: center;
    color: #a0a7b7;
    font-size: 11px;
    margin-top: 35px;
}
@@media (max-width: 767px) {
    .login-wrapper {
        padding: 16px;
    }
    .login-card {
        max-width: 440px;
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }
    .login-banner {
        padding: 26px 28px;
    }
    .banner-content {
        margin: 30px 0 20px;
    }
    .banner-content h1 {
        font-size: 27px;
    }
    .banner-content p {
        margin-bottom: 0;
    }
    .banner-tag, .banner-footer {
        display: none;
    }
    .login-form-panel {
        padding: 36px 28px;
    }
    .login-title {
        font-size: 29px;
    }
}
@@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
}

/* Login Loading Button */

.login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    transition: all 0.25s ease;
}

    /* Loading state */

    .login-button.is-loading {
        cursor: wait;
        opacity: 0.85;
        pointer-events: none;
        transform: scale(0.99);
    }

    .login-button .spinner-border {
        width: 18px;
        height: 18px;
        border-width: 2px;
        vertical-align: middle;
    }

    .login-button.is-loading .login-btn-arrow {
        display: none;
    }

    .login-button.is-loading .login-btn-loader {
        display: inline-flex !important;
        align-items: center;
    }

    .login-button:disabled {
        opacity: 0.75;
        cursor: not-allowed;
    }

/* Smooth animation */

.login-btn-loader {
    animation: loginLoaderFade 0.25s ease-in-out;
}

@keyframes loginLoaderFade {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Green Loading State */
.login-button.is-loading {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    cursor: wait;
    opacity: 1;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transform: scale(0.99);
}

    /* White Spinner */
    .login-button.is-loading .spinner-border {
        color: #ffffff;
    }

/* Smooth Transition */
.login-button {
    transition: all 0.3s ease;
}