* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #f5f7fc;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.spinner-icon {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.content-wrapper {
    width: 100%;
    max-width: 1050px;
    min-height: 620px;
    display: flex;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(24, 39, 75, 0.12);
}

/* Left Panel */
.brand-panel {
    width: 48%;
    background: linear-gradient(145deg, #111b40, #263f91 65%, #5947bc);
    padding: 55px 45px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    right: -140px;
    top: 120px;
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    right: -80px;
    bottom: -100px;
}

.brand-logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.brand-logo i {
    color: #a5b4fc;
    margin-right: 8px;
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-content h1 {
    font-size: 39px;
    font-weight: 750;
    line-height: 1.25;
    margin-bottom: 20px;
}

.brand-content p {
    color: #d0d8f4;
    font-size: 15px;
    line-height: 1.8;
    max-width: 350px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    font-size: 14px;
    color: #e2e8ff;
}

.brand-feature i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.13);
    color: #c4b5fd;
}

.brand-footer {
    color: #aebce7;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

/* Right Panel */
.form-panel {
    width: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 65px;
}

.content-form {
    width: 100%;
    max-width: 360px;
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    background: #eef0ff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-wrapper i {
    font-size: 28px;
    color: #5269d9;
}

.welcome-title {
    font-size: 29px;
    font-weight: 750;
    color: #17213d;
    margin-bottom: 8px;
}

.welcome-text {
    color: #8992a8;
    font-size: 14px;
    margin-bottom: 35px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #34405c;
    margin-bottom: 9px;
}

.input-group {
    border: 1px solid #e3e8f1;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
}

.input-group:focus-within {
    border-color: #6478e8;
    box-shadow: 0 0 0 3px rgba(100, 120, 232, .1);
}

.input-group-text {
    background: #fff;
    border: none;
    color: #9ba5ba;
    padding-left: 15px;
}

.input-group:has(.is-invalid) {
    border-color: #dc3545;
}

.input-group:has(.is-invalid):focus-within {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .1);
}

.input-group:has(.is-valid) {
    border-color: #198754;
}

.input-group:has(.is-valid):focus-within {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .1);
}

.form-control {
    border: none;
    padding: 13px 12px;
    font-size: 14px;
    box-shadow: none !important;
}

.form-control:focus {
    border: none;
}

.form-control::placeholder {
    color: #b7bfce;
}

.password-toggle {
    cursor: pointer;
    background: #fff;
    border: none;
    color: #929db2;
    padding: 0 15px;
}

.err-msg {
    font-size: 12px;
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #5269d9;
    text-decoration: none;
}

.forgot-link:hover {
    color: #3448ad;
}

.btn-content {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px;
    background: linear-gradient(100deg, #5269d9, #7356d9);
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 7px 18px rgba(82, 105, 217, .25);
    transition: .2s;
}

.btn-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(82, 105, 217, .35);
    color: white;
}

.btn-content:disabled,
.btn-content.disabled {
    opacity: 0.5;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    font-weight: 600;
    color: #5269d9;
    text-decoration: none;
}

.back-link:hover {
    color: #3448ad;
}

.terms-text {
    font-size: 12px;
    color: #8992a8;
}

.terms-text a {
    color: #5269d9;
    text-decoration: none;
    font-weight: 600;
}

.login-link {
    font-size: 13px;
    color: #8992a8;
    text-align: center;
    margin-top: 22px;
}

.login-link a {
    color: #5269d9;
    font-weight: 600;
    text-decoration: none;
}

.security-note {
    margin-top: 30px;
    text-align: center;
    color: #9aa3b6;
    font-size: 12px;
}

.security-note i {
    color: #35ae82;
    margin-right: 5px;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .content-wrapper {
        max-width: 460px;
        min-height: auto;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        width: 100%;
        padding: 50px 30px;
    }
}