.btn-register{
	margin-top: 0.75rem;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.35);
	color: #000000;
	background: rgba(255,255,255,0.8);
	font-weight: 600;
	text-decoration: none;
	transition: all .2s ease;
}

.btn-register:hover{
	transform: translateY(-1px);
	border-color: #000000;
	background: rgba(255,255,255,1);
}

/* Center the register card in the right panel */
.premium-register .login-panel {
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* important */
  }
  
  /* Top controls should stay on top */
  .premium-register .top-controls {
	flex: 0 0 auto;
  }
  
  /* Center the container in remaining space */
  .premium-register .login-container {
	flex: 1 1 auto;
	display: flex;
	align-items: center;      /* vertical center */
	justify-content: center;  /* horizontal center */
  }
  
  /* Ensure the card doesn't stretch weirdly */
  .premium-register .login-form-container {
	width: 100%;
	max-width: 520px; /* adjust as you like */
  }

/* ====================================
   MI Premium Login Page Design
   Fixed Color Scheme & Time-based Theming
   ==================================== */

/* CSS Variables for dynamic theming */
:root {
    /* Brand Colors */
    --brand-grey: hsl(0, 1%, 16%);
    --brand-green: hsl(69.58deg, 52.42%, 55.49%);
    --brand-orange: #ff6b35;
    --pure-white: #ffffff;
    --pure-black: #000000;

    /* Dynamic theme variables (updated by JavaScript) */
    --bg-primary: var(--pure-white);
    --bg-secondary: #f8fafc;
    --bg-accent: var(--brand-green);
    --text-primary: var(--pure-black);
    --text-secondary: rgba(0, 0, 0, 0.7);
    --form-bg: var(--pure-white);
    --form-text: var(--pure-black);
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Effects */
    --shadow-light: 0 2px 10px var(--shadow-color);
    --shadow-medium: 0 4px 20px var(--shadow-color);
    --shadow-heavy: 0 8px 30px var(--shadow-color);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Theme (Default) */
.theme-light,
body:not([data-theme]) {
    --bg-primary: var(--pure-white);
    --bg-secondary: #f8fafc;
    --bg-accent: var(--brand-green);
    --text-primary: var(--pure-black);
    --text-secondary: rgba(0, 0, 0, 0.7);
    --form-bg: var(--pure-white);
    --form-text: var(--pure-black);
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --logo-filter: none;
    --provider-bg: rgba(0, 0, 0, 0.05);
}

/* Dark Theme */
.theme-dark,
body[data-theme="dark"] {
    --bg-primary: var(--brand-grey);
    --bg-secondary: hsl(0, 1%, 20%);
    --bg-accent: var(--brand-green);
    --text-primary: var(--pure-white);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --form-bg: var(--pure-white);
    --form-text: var(--pure-black);
    --border-color: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --logo-filter: brightness(0) invert(1);
    --provider-bg: rgba(255, 255, 255, 0.1);
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.premium-login {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition-smooth);
}

/* Main container */
.premium-login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

/* Left Panel - Feature Showcase */
.feature-panel {
    position: relative;
    z-index: 2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: var(--bg-primary);
    transition: var(--transition-smooth);
    min-height: 100vh;
    overflow-y: auto;
}

/* Brand Section */
.brand-section {
    margin-bottom: 1.2rem;
    text-align: left;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-container img {
    height: 80px;
    width: auto;
    transition: var(--transition-smooth);
    filter: var(--logo-filter);
    background: transparent;
    padding: 8px;
    border-radius: 12px;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 0.5rem;
    min-height: 1.6em;
    width: 100%;
    max-width: 450px;
}

.brand-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 430px;
}

/* Mobile Money Providers */
.providers-section {
    margin: 2rem 0;
}

.providers-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.providers-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.provider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 100px;
}

.provider-item.provider-active {
    background: var(--card-bg);
    border-color: var(--bg-accent);
    box-shadow: var(--shadow-light);
}

.provider-item.provider-active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--brand-orange);
}

.provider-item.provider-coming-soon {
    background: var(--provider-bg);
    border-color: var(--border-color);
    opacity: 0.7;
}

.provider-logo {
    height: 40px;
    width: auto;
    transition: var(--transition-smooth);
    border-radius: 6px;
    background: transparent;
}

.provider-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}


/* M2U Logo */
.m2u-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    background: #7d7d7d7d;
    border-radius: 8px;
    overflow: hidden;
}

.m2u-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.m2u-text {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--pure-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.provider-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* Features Section */
.features-section {
    margin-top: 2rem;
}

.features-title {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--bg-accent);
    color: var(--pure-white);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--bg-accent);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-card:hover .feature-icon {
    color: var(--pure-white);
}

.feature-title {
    font-size: 0.875rem;
    color: inherit;
    font-weight: 500;
    line-height: 1.4;
}

/* Right Panel - Login Form */
.login-panel {
    position: relative;
    z-index: 2;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--form-text);
    transition: var(--transition-smooth);
    min-height: 100vh;
    overflow-y: auto;
}

/* Dark theme login panel */
body[data-theme="dark"] .login-panel {
    background: hsl(0, 1%, 20%);
}

/* Dark theme form background */
body[data-theme="dark"] .login-form-container {
    padding: 2rem;
}

.login-container {
    background: var(--pure-white);
    color: var(--pure-black);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 480px;
    position: sticky;
    top: 33%;
    transform: translateY(-50%);
}

/* Language Switcher & Theme Toggle */
.top-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    border-color: var(--bg-accent);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme icon animations */
.theme-toggle[data-theme="light"] .theme-icon::before {
    content: "☀️";
}

.theme-toggle[data-theme="dark"] .theme-icon::before {
    content: "🌙";
}

.theme-toggle .theme-icon::before {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover .theme-icon::before {
    transform: rotate(180deg);
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--bg-accent);
    border-radius: 8px;
    color: var(--bg-accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.lang-button:hover,
.lang-button.active {
    background: var(--bg-accent);
    color: var(--pure-white);
    text-decoration: none;
}

.lang-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Login Form */
.login-form-container {
    text-align: center;
    padding: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-accent);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--form-text);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.login-form {
    text-align: left;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group-floating {
    position: relative;
}

.form-control-floating {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--form-bg);
    transition: var(--transition-smooth);
    outline: none;
    color: var(--form-text);
}

.form-control-floating:focus {
    border-color: var(--bg-accent);
    box-shadow: 0 0 0 3px rgba(156, 185, 106, 0.1);
}

.form-control-floating:focus + .form-label-floating,
.form-control-floating:not(:placeholder-shown) + .form-label-floating {
    transform: translateY(-0.5rem) scale(0.85);
    color: var(--bg-accent);
}

.form-label-floating {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1rem;
    color: var(--form-text);
    opacity: 0.6;
    pointer-events: none;
    transition: var(--transition-smooth);
    transform-origin: left;
}

/* Error handling */
.form-error {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fee, #fdd);
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
    color: #721c24;
    font-size: 0.875rem;
    border-left: 4px solid #dc3545;
}

/* Captcha */
.captcha-container {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: var(--transition-smooth);
}

.captcha-container:focus-within {
    border-color: var(--bg-accent);
    box-shadow: 0 0 0 3px rgba(156, 185, 106, 0.1);
}

/* Remember Me */
.remember-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--form-text);
    opacity: 0.8;
}

.custom-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--bg-accent);
}

.forgot-password {
    color: var(--bg-accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.forgot-password:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--bg-accent);
    border: none;
    border-radius: var(--border-radius);
    color: var(--pure-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

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

/* Help Links */
.help-section {
    margin-top: 0.5rem;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.help-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-link {
    color: var(--form-text);
    opacity: 0.6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-link:hover {
    color: var(--bg-accent);
    opacity: 1;
    text-decoration: none;
}

/* Security Indicators */
.security-section {
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    text-align: center;
}

.security-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bg-accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--form-text);
    opacity: 0.7;
    background: var(--form-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.security-icon {
    width: 14px;
    height: 14px;
    color: hsl(69.58deg, 52.42%, 55.49%);
}

/* Time indicator */
.time-indicator {
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 1000;
    opacity: 0.5;
}

/* Copyright Footer */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-content {
    padding: 0.75rem 1rem;
    text-align: center;
}

.copyright-content p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.copyright-content a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.copyright-content a:hover {
    color: var(--pure-white);
    text-decoration: underline;
}

/* Dark theme adjustments */
body[data-theme="dark"] .copyright-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .premium-login-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .login-panel {
        order: -1;
        min-height: 100vh;
        padding: 2rem;
    }

    .feature-panel {
        order: 1;
        padding: 2rem;
        border-right: none;
        border-top: 1px solid var(--border-color);
        min-height: auto;
    }

    .login-container {
        position: static;
        transform: none;
        max-width: 100%;
    }

    .brand-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .feature-panel {
        padding: 1.5rem;
    }

    .login-panel {
        padding: 1.5rem 1.5rem 1rem; /* Réduit encore le padding */
        display: block; /* Assure que c'est en block */
        min-height: auto; /* Pas de hauteur minimale */
        align-items: flex-start; /* Si flex est utilisé ailleurs */
        justify-content: flex-start;
    }

    .login-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        position: static; /* Assure que le positionnement est statique */
        transform: none;
        top: auto;
    }

    .top-controls {
        position: static;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .help-links {
        flex-direction: column;
        gap: 1rem;
    }

    .remember-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .providers-list {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .feature-panel,
    .login-panel {
        padding: 1rem;
        padding-bottom: 3rem; /* Add space for footer */
    }

    .login-container {
        max-width: none;
        margin: 0; /* Supprime les marges auto pour occuper toute la largeur */
    }

    .security-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .copyright-content {
        padding: 0.5rem 1rem;
    }

    .copyright-content p {
        font-size: 0.6875rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus improvements */
.btn-login:focus,
.form-control-floating:focus,
.lang-button:focus,
.help-link:focus,
.forgot-password:focus {
    outline: 2px solid var(--bg-accent);
    outline-offset: 2px;
}

/* Theme transition */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* System theme preferences */
@media (prefers-color-scheme: dark) {
    body:not([data-theme]) {
        --bg-primary: var(--brand-grey);
        --bg-secondary: hsl(0, 1%, 20%);
        --text-primary: var(--pure-white);
        --text-secondary: rgba(255, 255, 255, 0.8);
        --form-bg: var(--pure-white);
        --form-text: var(--pure-black);
        --border-color: rgba(255, 255, 255, 0.2);
        --card-bg: rgba(255, 255, 255, 0.1);
        --shadow-color: rgba(0, 0, 0, 0.3);
        --logo-filter: brightness(0) invert(1);
        --provider-bg: rgba(255, 255, 255, 0.1);
    }
}

/* Dark theme form adjustments */
body[data-theme="dark"] .form-control-floating {
    background: var(--form-bg);
    color: var(--form-text);
    border: 2px solid hsl(0, 1%, 85%);
}

body[data-theme="dark"] .form-control-floating:focus {
    border-color: var(--bg-accent);
    box-shadow: 0 0 0 3px rgba(156, 185, 106, 0.2);
}

body[data-theme="dark"] .form-label-floating {
    color: var(--form-text);
    opacity: 0.7;
}

body[data-theme="dark"] .form-control-floating:focus + .form-label-floating,
body[data-theme="dark"] .form-control-floating:not(:placeholder-shown) + .form-label-floating {
    color: var(--bg-accent);
    opacity: 1;
}

/* Dark theme captcha */
body[data-theme="dark"] .captcha-container {
    border: 2px solid hsl(0, 1%, 85%);
}

body[data-theme="dark"] .captcha-container:focus-within {
    border-color: var(--bg-accent);
    box-shadow: 0 0 0 3px rgba(156, 185, 106, 0.2);
}

/* Better grid layout for features */
.features-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .top-controls {
        position: static;
        justify-content: center;
        margin-bottom: 2rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .theme-transitioning,
    .theme-transitioning *,
    .theme-transitioning *::before,
    .theme-transitioning *::after {
        transition: none !important;
    }
}

.premium-register .login-panel{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

/* Keep top controls fixed without breaking centering */
.premium-register .top-controls{
    position:absolute;
}

/* Disable sticky card behavior on register page */
.premium-register .login-container{
    position: static !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto;
}

.premium-register .login-panel{
    padding-top: 110px; /* adjust 90-140 depending on your design */
    box-sizing: border-box;
  }
  
  /* Ensure the card doesn't go behind the top controls */
  .premium-register .login-container{
    margin-top: 0 !important;
}

/* =========================
   Horizontal Steps (Left Panel)
   ========================= */

   .steps-section{
    margin-top: 1rem;
    width: 100%;
  }
  
  .steps-card{
    width: 100%;
    border-radius: 22px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
    padding: 22px 22px 18px;
    backdrop-filter: blur(10px);
  }
  
  body[data-theme="dark"] .steps-card{
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.12);
  }
  
  .steps-row{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-top: 12px;
  }
  
  /* the horizontal line behind dots */
  .steps-row::before{
    content: "";
    position: absolute;
    left: 7.5%;
    right: 7.5%;
    top: 22px;
    height: 2px;
    background: rgba(0,0,0,.12);
    border-radius: 999px;
  }
  
  body[data-theme="dark"] .steps-row::before{
    background: rgba(255,255,255,.18);
  }
  
  .step-item{
    text-align: center;
    position: relative;
    padding: 0 8px;
  }
  
  .step-dot{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid rgba(0,0,0,.20);
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
  }
  
  body[data-theme="dark"] .step-dot{
    background: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.35);
  }
  
  /* Active state like your example */
  .step-item.is-active .step-dot{
    border-color: var(--bg-accent);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
  }
  
  .step-item.is-active .step-dot::after{
    content:"";
    position:absolute;
    inset: 4px;
    border-radius: 999px;
    background: var(--bg-accent);
  }
  
  /* Make progress line colored up to step 1 only (static) */
  .step-item.is-active::before{
    content:"";
    position:absolute;
    left: -50%;
    right: 50%;
    top: 22px;
    height: 2px;
    background: var(--bg-accent);
    border-radius: 999px;
    z-index: 1;
    display: none; /* step 1 has nothing before it */
  }
  
  .step-title{
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
  }
  
  .step-desc{
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.25;
  }
  
  /* Emphasize active title */
  .step-item.is-active .step-title{
    color: var(--bg-accent);
  }
  
  /* Responsive: stack steps if narrow */
  @media (max-width: 1100px){
    .steps-row{
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .steps-row::before{
      display:none;
    }
    .step-item{
      text-align: left;
      display: grid;
      grid-template-columns: 24px 1fr;
      column-gap: 12px;
      align-items: start;
      padding: 8px 0;
    }
    .step-dot{
      margin: 2px 0 0;
    }
    .step-title{
      margin: 0;
    }
    .step-desc{
      grid-column: 2;
    }
  }


/* ✅ Prevent floating labels from wrapping (this is what you're seeing) */
.premium-register .form-label-floating{
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 2rem); /* matches left/right padding of input */
  }
  
  /* Optional: on very small screens, make the label slightly smaller */
  @media (max-width: 420px){
    .premium-register .form-label-floating{
      font-size: 0.92rem;
    }
  }

  @media (max-width: 420px){
    .phone-field .form-label-floating{
      max-width: calc(100% - 120px);
      font-size: 0.92rem;
    }
  }

  .phone-error{
    display:block;
    margin-top:.35rem;
    font-size:.8rem;
    color:#dc3545;
  }

  .premium-register .iti {
    width: 100%;
    display: block;
  }
  
  /* Phone field wrapper */
.premium-register .phone-field{
    position: relative;
  }
  
  /* Default: show label (shift it right to avoid +237 overlap) */
  .premium-register .phone-field .form-label-floating{
    left: 96px !important;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    transition: opacity .15s ease, visibility .15s ease;
  }
  
  /* When there is value: hide label */
  .premium-register .phone-field.has-value .form-label-floating{
    opacity: 0;
    visibility: hidden;
  }
  
  /* intl-tel-input width */
  .premium-register .iti{
    width: 100%;
    display: block;
  }
  
  /* leave space for flag + dial code */
  .premium-register .iti--separate-dial-code .form-control-floating{
    padding-left: 96px !important;
  }
  
  /* dial code style */
  .premium-register .iti--separate-dial-code .iti__selected-dial-code{
    font-weight: 600;
    opacity: .8;
  }
  
  /* dropdown above */
  .premium-register .iti__country-list{
    z-index: 9999;
  }

  .micro-trust{
    display:grid;
    gap:.5rem;
    margin: .75rem 0 1.25rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(156,185,106,.10);
    border: 1px solid rgba(156,185,106,.25);
  }
  
  .micro-trust-item{
    display:flex;
    align-items:center;
    gap:.6rem;
    font-size:.9rem;
    font-weight:600;
    opacity:.95;
  }
  
  .micro-trust-icon{
    color: var(--bg-accent);
    font-size: 1rem;
  }
  
  .after-submit-hint{
    margin-top: .75rem;
    font-size: .85rem;
    opacity: .75;
    text-align:center;
  }

  .premium-register .features-grid{
    grid-template-columns: 1fr; /* vertical */
  }

  /* =========================
   Email confirm pages: single centered panel + top-left logo
   ========================= */

.page-center-only .premium-login-wrapper.single-panel{
    grid-template-columns: 1fr !important; /* remove 2 columns */
  }
  
  .page-center-only .feature-panel{
    display: none !important; /* in case it still exists somewhere */
  }
  
  /* Center the single panel */
  .page-center-only .single-centered-panel{
    width: 100%;
    min-height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6.5rem 1.5rem 20.5rem !important; /* top space for controls + logo */
    position: relative;
  }
  
  /* Make top controls stay top-right like login */
  .page-center-only .top-controls{
    position: fixed !important;
    top: 2rem;
    right: 2rem;
    z-index: 2000;
  }
  
  /* Logo fixed top-left */
  .page-center-only .top-left-logo{
    position: fixed;
    top: 1.6rem;
    left: 2rem;
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
  
  .page-center-only .top-left-logo img{
    height: 54px;
    width: auto;
    filter: var(--logo-filter);
    border-radius: 10px;
    padding: 6px;
  }
  
  /* Prevent sticky behavior */
  .page-center-only .login-container{
    position: static !important;
    top: auto !important;
    transform: none !important;
    max-width: 560px;
    width: 100%;
  }
  
  /* Small info box style */
  .page-center-only .info-box{
    margin: 1rem 0 1.25rem;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.08);
  }
  
  body[data-theme="dark"] .page-center-only .info-box{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
  }
  
  .page-center-only .info-box-danger{
    border-color: rgba(220,53,69,.25);
    background: rgba(220,53,69,.08);
  }
  
  .page-center-only .info-row{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }
  
  .page-center-only .info-label{
    font-weight: 700;
  }
  
  .page-center-only .info-value{
    font-weight: 500;
    opacity: .95;
  }
  
  /* Button grid */
  .page-center-only .action-grid{
    display: grid;
    gap: .75rem;
    margin-top: 1.1rem;
  }
  
  /* Optional: make first button feel primary without changing your btn-register base */
  .page-center-only .btn-primary-like{
    border-color: var(--bg-accent);
  }
  
  .page-center-only .btn-secondary-like{
    opacity: .92;
  }
  
  /* Hint */
  .page-center-only .small-hint{
    margin-top: 1rem;
    opacity: .85;
    font-size: .95rem;
  }
  
  /* Mobile spacing */
  @media (max-width: 768px){
    .page-center-only .top-controls{
      position: static !important;
      margin: 1rem 0 1rem;
      justify-content: center;
    }
    .page-center-only .top-left-logo{
      position: static;
      margin: 1.25rem auto 0;
      justify-content: center;
      width: 100%;
    }
    .page-center-only .single-centered-panel{
      padding-top: 1rem !important;
    }
  }

  /* 1) Le layout ne doit jamais grandir */
  .premium-login-wrapper{
    height: 100vh;      /* pas min-height */
    overflow: hidden;   /* empêche le wrapper de s'étirer */
  }
  
  /* 2) Chaque panneau scrolle indépendamment si contenu long */
  .feature-panel,
  .login-panel{
    height: 100vh;
    overflow-y: auto;
  }
  
  /* 3) Sur register, on garde le centre stable */
  .premium-register .login-panel{
    display: flex !important;
    flex-direction: column;        /* important */
    justify-content: flex-start !important; /* pas center */
    align-items: center !important;
    padding-top: 110px;            /* tu l'as déjà */
  }
  
  /* 4) Le card (form) reste en haut, pas étiré */
  .premium-register .login-container{
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  

  :root {
    --primary-color: #79a531;
    --primary-dark: #6b9129;
    --primary-light: #8db63d;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.registration-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-number.completed {
    background: var(--primary-color);
    color: white;
}

.step-number.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(121, 165, 49, 0.2);
}

.step-number.pending {
    background: #e9ecef;
    color: #6c757d;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(121, 165, 49, 0.1);
}

.form-control:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.input-group-text {
    background: white;
    border: 2px solid #e2e8f0;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--primary-color);
}

.section-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check {
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.form-check:hover {
    background: #f1f3f5;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

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

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    margin-left: 0.5rem;
}

.password-requirements {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.password-requirements p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0066cc;
    font-size: 0.9rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.password-requirements li {
    padding: 0.25rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
}

.password-requirements li::before {
    content: "○";
    position: absolute;
    left: -1.2rem;
    font-weight: bold;
}

.password-requirements li.valid {
    color: #28a745;
    font-weight: 600;
}

.password-requirements li.valid::before {
    content: "✓";
    color: #28a745;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(121, 165, 49, 0.4);
}

.btn-primary-custom:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success-custom {
    background: #d4edda;
    color: #155724;
}

.alert-danger-custom {
    background: #f8d7da;
    color: #721c24;
}

.checkbox-api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.api-checkbox-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.api-checkbox-card:hover {
    border-color: var(--primary-color);
    background: #f8fdf5;
}

.api-checkbox-card.checked {
    border-color: var(--primary-color);
    background: #f8fdf5;
}

.service-radio-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.service-radio-card:hover {
    border-color: var(--primary-color);
    background: #f8fdf5;
}

.service-radio-card.selected {
    border-color: var(--primary-color);
    background: #f8fdf5;
    box-shadow: 0 4px 12px rgba(121, 165, 49, 0.15);
}

@media (max-width: 768px) {
    .checkbox-api-grid {
        grid-template-columns: 1fr;
    }
}

.card-header-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
}

.card-body-custom {
  padding: 2.5rem;
}

.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.step-number {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-number.completed {
  background: var(--primary-color);
  color: white;
}

.step-number.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 4px rgba(121, 165, 49, 0.2);
}

.section-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid #e9ecef;
}

.section-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.checkbox-api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.api-checkbox-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s;
  cursor: pointer;
}

.api-checkbox-card:hover,
.api-checkbox-card.checked {
  border-color: var(--primary-color);
  background: #f8fdf5;
}

.service-radio-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
  cursor: pointer;
}

.service-radio-card:hover,
.service-radio-card.selected {
  border-color: var(--primary-color);
  background: #f8fdf5;
}

.password-requirements {
  background: #e7f3ff;
  border-left: 4px solid #0066cc;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}

.password-requirements ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.password-requirements li {
  color: #6c757d;
}

.password-requirements li.valid {
  color: #28a745;
  font-weight: 600;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: 12px;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(121, 165, 49, 0.4);
}

.alert-custom {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success-custom {
  background: #d4edda;
  color: #155724;
}

.alert-danger-custom {
  background: #f8d7da;
  color: #721c24;
}

.toggle-password-btn {
  color: var(--primary-color);
  cursor: pointer;
}