:root {
    --primary: #8C0E84;
    --primary-dark: #6F0B69;
    --secondary: #A31697;
    --accent: #A31697;
    --background: #F5EEF5; /* Soft greyish purple background */
    --text-dark: #2D2D2D;
    --text-light: #5A5A6A;
    --white: #FFFFFF;
    --glass: rgba(248, 248, 252, 0.85);
    --border-color: rgba(140, 14, 132, 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #F8F8FC 0%, #F5ECF5 100%) !important;
    background-attachment: fixed;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper-outer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    width: 100%;
}

.login-container-card {
    width: 100%;
    max-width: 1050px;
    background: transparent;
    border-radius: 36px;
    overflow: visible;
}

/* Flex Row */
.login-flex-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

/* Left Branding Pane */
.left-pane-branding {
    flex: 1.1;
    min-width: 400px;
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 30px;
}

/* Dot Pattern Decor */
.dot-pattern {
    position: absolute;
    top: 30px;
    left: 20px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--border-color) 2px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0.8;
}

.login-logo-img {
    height: 52px;
    width: auto;
}

.branding-content {
    margin: 15px 0;
}

.branding-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.branding-title span {
    color: var(--primary);
}

.branding-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.branding-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branding-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(140, 14, 132, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-icon-circle svg {
    width: 20px;
    height: 20px;
}

.feat-text-wrapper {
    display: flex;
    flex-direction: column;
}

.feat-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.feat-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
}

.branding-illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    align-self: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(140, 14, 132, 0.08);
    border: 1px solid var(--border-color);
}

.illustration-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(163, 22, 151, 0.1) 0%, transparent 60%);
}

.branding-illustration-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.right-pane-form {
    flex: 0.9;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-form-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 20px 45px rgba(140, 14, 132, 0.08);
    border: 1px solid var(--border-color);
}

.welcome-header {
    text-align: left;
    margin-bottom: 15px;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.welcome-subtitle {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Form Styles */
.form-label-custom {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-box {
    position: absolute;
    left: 18px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.input-icon-box svg {
    width: 18px;
    height: 18px;
}

.input-icon-box-right {
    position: absolute;
    right: 18px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
}

.input-icon-box-right:hover {
    color: var(--primary);
}

.input-icon-box-right svg {
    width: 18px;
    height: 18px;
}

.form-input-custom {
    width: 100%;
    padding: 11px 18px 11px 48px;
    border-radius: 14px;
    border: 1.5px solid rgba(140, 14, 132, 0.1);
    background: #F8F8FC;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    outline: none;
    color: var(--text-dark);
}

.form-input-custom:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(140, 14, 132, 0.08);
}

.forgot-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.forgot-pass-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-pass-link:hover {
    color: var(--primary-dark);
}

.btn-login-new {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(140, 14, 132, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-login-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(140, 14, 132, 0.35);
}

.divider-or {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.divider-or::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(140, 14, 132, 0.08);
    z-index: 1;
}

.divider-or span {
    background: var(--white);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Social Row */
.social-login-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.btn-social-login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(140, 14, 132, 0.08);
    background: var(--white);
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-social-login:hover {
    background: #F8F8FC;
    border-color: rgba(140, 14, 132, 0.15);
    transform: translateY(-1px);
}

.signup-prompt {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
}

.signup-prompt a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-prompt a:hover {
    color: var(--primary-dark);
}

#infoMessage {
    margin-bottom: 20px;
}

.info-box {
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 0.88rem;
}

.bg-gradient-success {
    background: #FDF2FD !important;
    color: var(--primary) !important;
    border: 1.5px solid rgba(140, 14, 132, 0.2) !important;
    box-shadow: 0 4px 12px rgba(140, 14, 132, 0.05);
}

.bg-gradient-danger {
    background: #FFF5F5 !important;
    color: #C53030 !important;
    border: 1.5px solid rgba(197, 48, 48, 0.2) !important;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.05);
}

/* Footer Security */
.login-footer-security {
    background: transparent;
    width: 100%;
}

/* Responsive */
@media (max-width: 991px) {
    .left-pane-branding { display: none !important; }
    .login-container-card { max-width: 480px; }
    .login-form-card { padding: 35px 25px; }
    .right-pane-form { padding: 20px; }
}
