:root {
    --primary: #5B3E8E;
    --primary-dark: #472f72;
    --primary-soft: #efe8fb;
    --primary-soft-2: #f6f2fd;
    --text-dark: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    --border: #e5e7eb;
    --input-bg: #f3eefb;
    --white: #ffffff;
    --danger: #dc2626;
    --success-bg: #ecfdf3;
    --success-text: #166534;
    --shadow-main: 0 30px 70px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 14px 30px rgba(91, 62, 142, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.login-page {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f5f8;
    color: var(--text-dark);
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.login-shell {
    min-height: 100vh;
    padding: 32px 20px;
}

.login-card {
    width: 100%;
    max-width: 1120px;
    min-height: 650px;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-main);
    margin: 0 auto;
}

.login-card > .row {
    min-height: 650px;
}

/* LEFT PANEL */
.login-brand-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #6a4aa5 0%, #5B3E8E 55%, #472f72 100%);
    color: var(--text-light);
    padding: 40px 48px;
    min-height: 100%;
}

.brand-curve {
    position: absolute;
    top: 50%;
    right: -170px;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-logo-top {
    align-self: flex-start;
    margin-bottom: 48px;
}

.brand-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.brand-logo-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.82);
}

.brand-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    max-width: 400px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.brand-copy h2 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
}

.brand-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,0.88);
}

.brand-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.brand-point-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
}

.brand-point-item i {
    color: #ddd0ff;
    margin-top: 2px;
    font-size: 16px;
}

.brand-info-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    max-width: 380px;
}

.brand-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-info-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.brand-info-text p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
}

/* RIGHT PANEL */
.login-form-panel {
    background: var(--white);
    min-height: 100%;
    padding: 0;
}

.form-panel-inner {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.form-box {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h3 {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1;
    color: var(--primary);
    font-weight: 700;
}

.form-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.alert-success {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success i {
    font-size: 16px;
}

.login-form {
    width: 100%;
}

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

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8d97a7;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.pill-input .custom-input {
    height: 52px;
    border-radius: 999px;
    background: var(--input-bg);
    border: 1px solid transparent;
    padding: 0 48px 0 46px;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.pill-input .custom-input::placeholder {
    color: #97a3b6;
}

.pill-input .custom-input:focus,
.pill-input .custom-input:active,
.pill-input .custom-input:focus-visible,
.form-control.custom-input:focus {
    background: var(--input-bg) !important;
    background-color: var(--input-bg) !important;
    border-color: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 0 4px rgba(91, 62, 142, 0.10) !important;
    outline: none;
}

.form-control.custom-input {
    background-color: var(--input-bg);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8d97a7;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    z-index: 3;
}

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

.login-button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #6b4aa8 0%, var(--primary) 60%, var(--primary-dark) 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(91, 62, 142, 0.22);
}

.centered-meta {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.remember-me input {
    accent-color: var(--primary);
}

.error-text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--danger);
    padding-left: 8px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .login-shell {
        padding: 24px 16px;
    }

    .login-card {
        min-height: auto;
    }

    .login-card > .row {
        min-height: auto;
    }

    .login-brand-panel {
        padding: 32px 28px;
    }

    .brand-logo-top {
        margin-bottom: 32px;
    }

    .brand-main {
        max-width: 100%;
    }

    .login-form-panel {
        min-height: auto;
    }

    .form-panel-inner {
        min-height: auto;
        padding: 36px 28px;
    }

    .brand-curve {
        right: -120px;
        width: 300px;
        height: 300px;
    }

    .brand-copy h2 {
        font-size: 34px;
    }

    .form-box {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .login-shell {
        padding: 16px;
    }

    .login-card {
        border-radius: 22px;
    }

    .login-brand-panel {
        padding: 24px 20px;
    }

    .form-panel-inner {
        padding: 28px 20px;
    }

    .brand-copy h2 {
        font-size: 28px;
    }

    .brand-copy p {
        font-size: 14px;
    }

    .form-header h3 {
        font-size: 34px;
    }

    .brand-info-box {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .brand-copy h2 {
        font-size: 24px;
    }

    .form-header h3 {
        font-size: 28px;
    }
}