/* ===================================
   RESET ET STYLES GLOBAUX
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #ffffff;
    color: #333333;
    overflow: hidden;
}

/* ===================================
   CONTAINER PRINCIPAL
   =================================== */

.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #ffffff;
}

/* ===================================
   PANEL GAUCHE - IMAGE AVEC OVERLAY
   =================================== */

.left-panel {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   SCORES À GAUCHE
   =================================== */

.left-scores {
    position: absolute;
    bottom: 85px;
    left: 30px;
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.score-icon {
    font-size: 12px;
}

.score-text {
    font-size: 10px;
}

/* ===================================
   OVERLAY TRUSTPILOT EN BAS
   =================================== */

.trustpilot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 10;
}

/* Gradient de fond - Plus fort */
.trustpilot-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 85%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

/* Contenu Trustpilot */
.trustpilot-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px 30px 30px;
    color: #ffffff;
    text-align: left;
}

/* Étoiles */
.trustpilot-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 14px;
}

.star {
    font-size: 20px;
    color: #1ec15f;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Texte principal */
.trustpilot-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.trustpilot-text strong {
    font-weight: 700;
}

/* Info Trustpilot */
.trustpilot-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trustpilot-logo {
    flex-shrink: 0;
}

.trustpilot-logo img {
    height: 26px;
    width: auto;
    filter: brightness(1.3);
    opacity: 0.95;
}

/* ===================================
   PANEL DROIT - FORMULAIRE
   =================================== */

.right-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.form-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-container {
    width: 100%;
    max-width: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 40px 0;
}

/* Scrollbar cachée */
.form-container::-webkit-scrollbar {
    width: 0px;
}

.form-container::-webkit-scrollbar-track {
    background: transparent;
}

.form-container::-webkit-scrollbar-thumb {
    background: transparent;
}

.form-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===================================
   LOGO INDY
   =================================== */

.logo-section {
    text-align: center;
    margin-bottom: 22px;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    display: inline-block;
    font-style: italic;
}

/* ===================================
   TITRE PRINCIPAL
   =================================== */

.main-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 24px;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

/* ===================================
   BOUTONS SOCIAUX
   =================================== */

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.social-buttons form {
    width: 100%;
}

.btn-social {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid #333333;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    padding: 0 12px;
}

.btn-social:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ===================================
   DIVIDER
   =================================== */

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
    color: #999999;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    margin-right: 8px;
}

.divider::after {
    margin-left: 8px;
}

/* ===================================
   FORMULAIRE
   =================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.05);
}

.input-field::placeholder {
    color: #999999;
}

/* Password Wrapper */
.password-wrapper .input-field {
    padding-right: 38px;
}

/* Toggle Password Button */
.toggle-password-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666666;
}

.toggle-password-btn:hover {
    color: #333333;
}

.eye-icon {
    width: 16px;
    height: 16px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===================================
   CLOUDFLARE CHECKBOX
   =================================== */

.cloudflare-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 4px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #333333;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
}

.checkbox-text {
    font-size: 12px;
    color: #333333;
    font-weight: 500;
}

.cloudflare-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    margin-left: auto;
}

.cf-badge-text {
    font-size: 8px;
    font-weight: 700;
    color: #ff9800;
    letter-spacing: 0.3px;
}

.cf-badge-link {
    font-size: 7px;
    color: #666666;
    text-decoration: none;
}

/* ===================================
   BOUTON SUBMIT
   =================================== */

.btn-submit {
    width: 100%;
    height: 44px;
    background: #d8e1e9;
    color: #5e7387;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background: #cdd5df;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Bouton actif (rose) */
.btn-submit.active {
    background: linear-gradient(135deg, #ff4081 0%, #ff1493 100%);
    color: #ffffff;
}

.btn-submit.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.3);
}

/* ===================================
   FORGOT PASSWORD
   =================================== */

.forgot-password {
    text-align: center;
    margin-top: 10px;
    flex-shrink: 0;
}

.forgot-password a {
    font-size: 11px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #333333;
    text-decoration: underline;
}

/* ===================================
   CREATE ACCOUNT SECTION (SCROLLABLE)
   =================================== */

.create-account-section {
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.create-account-section p {
    font-size: 11px;
    color: #666666;
}

.create-link {
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.create-link strong {
    font-weight: 700;
    color: #333333;
}

.create-link:hover {
    color: #333333;
}

.create-link:hover strong {
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE - TABLETTE (1024px)
   =================================== */

@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        min-height: 300px;
        flex: 0 0 auto;
    }

    .trustpilot-overlay {
        height: 240px;
    }

    .trustpilot-gradient {
        height: 240px;
    }

    .trustpilot-content {
        padding: 30px 20px 20px 20px;
    }

    .left-scores {
        bottom: 60px;
        left: 15px;
    }

    .score-item {
        padding: 5px 8px;
        font-size: 10px;
    }

    .score-text {
        font-size: 9px;
    }

    .right-panel {
        flex: 1;
        height: auto;
    }

    .form-wrapper {
        padding: 20px;
    }

    .form-container {
        max-width: 100%;
        height: auto;
        overflow: visible;
        padding: 30px 20px;
    }

    html, body {
        overflow: auto;
    }
}

/* ===================================
   RESPONSIVE - MOBILE (768px)
   =================================== */

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        flex: 1;
        width: 100%;
        height: auto;
    }

    .form-wrapper {
        padding: 15px;
    }

    .form-container {
        max-width: 100%;
        height: auto;
        overflow: visible;
        padding: 20px;
    }

    .logo-img {
        height: 32px;
    }

    .main-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .social-buttons {
        gap: 9px;
        margin-bottom: 16px;
    }

    .btn-social {
        height: 42px;
        font-size: 12px;
        gap: 7px;
    }

    .social-icon {
        width: 15px;
        height: 15px;
    }

    .divider {
        margin: 16px 0;
        font-size: 11px;
    }

    .login-form {
        gap: 11px;
        margin-bottom: 12px;
    }

    .input-field {
        height: 42px;
        padding: 9px 11px;
        font-size: 12px;
        border-radius: 7px;
    }

    .password-wrapper .input-field {
        padding-right: 36px;
    }

    .eye-icon {
        width: 15px;
        height: 15px;
    }

    .checkbox-input {
        width: 16px;
        height: 16px;
    }

    .checkbox-text {
        font-size: 11px;
    }

    .cf-badge-text {
        font-size: 7px;
    }

    .cf-badge-link {
        font-size: 6px;
    }

    .btn-submit {
        height: 42px;
        font-size: 12px;
    }

    .forgot-password a {
        font-size: 10px;
    }

    .create-account-section {
        margin-top: 12px;
        padding-top: 12px;
    }

    .create-account-section p {
        font-size: 10px;
    }

    html, body {
        overflow: auto;
    }
}

/* ===================================
   RESPONSIVE - PETIT MOBILE (480px)
   =================================== */

@media (max-width: 480px) {
    .form-wrapper {
        padding: 10px;
    }

    .form-container {
        padding: 15px;
        max-width: 100%;
    }

    .logo-section {
        margin-bottom: 18px;
    }

    .logo-img {
        height: 30px;
    }

    .main-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .social-buttons {
        gap: 8px;
        margin-bottom: 14px;
    }

    .btn-social {
        height: 40px;
        font-size: 11px;
        gap: 6px;
    }

    .social-icon {
        width: 14px;
        height: 14px;
    }

    .divider {
        margin: 14px 0;
        font-size: 10px;
    }

    .login-form {
        gap: 10px;
        margin-bottom: 10px;
    }

    .input-field {
        height: 40px;
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .password-wrapper .input-field {
        padding-right: 34px;
    }

    .eye-icon {
        width: 14px;
        height: 14px;
    }

    .checkbox-input {
        width: 15px;
        height: 15px;
    }

    .checkbox-text {
        font-size: 10px;
    }

    .btn-submit {
        height: 40px;
        font-size: 11px;
    }

    .forgot-password {
        margin-top: 8px;
    }

    .forgot-password a {
        font-size: 9px;
    }

    .create-account-section {
        margin-top: 10px;
        padding-top: 10px;
    }

    .create-account-section p {
        font-size: 9px;
    }

    html, body {
        overflow: auto;
    }
}
