
:root{
    --brand-1: var(--primary-color, #e91e63);
    --brand-2: var(--primary-hover, #c2185b);
    --muted: var(--text-secondary, #6c757d);
    --card-radius: 24px;
    --bs-primary: var(--primary-color, #e91e63);
}

.auth-card { 
    border-radius: var(--card-radius);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Brand icon override: make key/icon pink instead of Bootstrap blue */
.brand-icon i,
.brand-icon i.text-primary {
    color: var(--brand-1) !important;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Decorative blob on the left panel */
.decor-blob{
    position: absolute;
    width: 360px;
    height: 360px;
    right: -80px;
    bottom: -80px;
    background: radial-gradient(circle at 30% 30%, rgba(233,30,99,0.12), rgba(194,24,91,0.06) 40%, transparent 60%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

/* Ensure left panel content sits above decorations */
.col-12.col-lg-6.d-none.d-lg-flex{ position: relative; z-index: 1; }

/* Slight refinement for smaller controls */
.form-control{ 
    height:52px;
    background-color: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--bg-surface);
    border-color: var(--primary-color);
}

.btn-auth{ 
    background: linear-gradient(90deg, var(--brand-1) 0%, var(--brand-2) 100%);
    color: #fff;
    border: none;
}

@media (max-width: 991.98px){
    .decor-blob{ display:none; }
}

/* Input icon placed inside the input box */
.input-with-icon{ position: relative; display:block; }

.input-with-icon .input-icon{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    color: var(--muted);
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 3;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.input-with-icon .form-control{ padding-right: 68px; }

/* RTL support: icon sits on the left inside the input when dir=rtl */
[dir="rtl"] .input-with-icon .input-icon{ right: auto; left: 12px; }
[dir="rtl"] .input-with-icon .form-control{ padding-right: 12px; padding-left: 68px; }

/* Ensure country selector and phone input align and share borders */
.input-group { display:flex; align-items:center; }
.input-group .country-select-trigger,
.input-group .js-dial-code-trigger,
.input-group .input-group-text {
    height: 52px;
    min-height: 52px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    display:flex;
    align-items:center;
    padding: 0 15px;
    box-sizing: border-box;
    color: var(--text-primary);
}

.input-group .country-select-trigger .selected-flag,
.input-group .js-dial-code-trigger .selected-flag {
    display:flex; align-items:center; gap:6px;
}

.input-group .form-control{
    height:52px;
    min-height:52px;
    border-left: none;
    border-radius: 8px;
}
