:root {
    --brand-1: var(--primary-color, #e91e63);
    --brand-2: var(--primary-hover, #d81b60);
}

.hero-section {
    background: linear-gradient(135deg, #fbe4e7 0%, #f6e4ee 100%) !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Background Decoration */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

[data-bs-theme="dark"] .hero-section::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 63, 107, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.auth-card {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Brand Icon */
.brand-icon i {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ensure any icon inside auth headers uses brand pink */
.auth-header i {
    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;
}

/* Form Elements */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--bg-body);
    color: var(--text-primary);
    height: 52px; /* Fixed height for consistency */
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    background-color: var(--bg-surface);
}

.form-control-lg {
    min-height: 52px;
}

.input-group-text {
    border: 2px solid var(--border-color);
    border-right: none;
    background: var(--bg-body);
    color: var(--text-secondary);
    border-radius: 12px 0 0 12px;
}

[dir="ltr"] .input-group-text {
    border-right: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 12px 12px 0;
}

/* Country Selector Override */
.country-select-trigger,
.js-dial-code-trigger {
    height: 52px !important;
    border: 2px solid var(--border-color) !important;
    border-right: none !important;
    background: var(--bg-body) !important;
    color: var(--text-primary) !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: none !important;
}

.js-dial-code-trigger:hover {
    border-color: var(--border-color) !important;
}

/* Checkbox */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.15em;
    background-color: var(--bg-surface);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Buttons */
.btn-auth {
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.2);
    color: #fff;
}

.btn-auth:active {
    transform: translateY(0);
}

/* Links */
a.text-primary {
    color: var(--primary-color) !important;
    transition: color 0.2s;
}

a.text-primary:hover {
    color: var(--primary-hover) !important;
}

/* Text Colors */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .auth-card {
        border-radius: 20px;
    }
    
    .card-body {
        padding: 2rem 1.5rem !important;
    }
}
