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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #262626;
    font-size: 14px;
    line-height: 18px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #00376b;
}

a:hover {
    text-decoration: underline;
}

/* Container principal */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0;
    max-width: 935px;
    margin: 0 auto;
    width: 100%;
}

/* Phone mockup */
.phone-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 32px;
}

.phones-image {
    width: 380px;
    height: auto;
}

/* Login section */
.login-section {
    display: flex;
    flex-direction: column;
    max-width: 350px;
    width: 100%;
}

/* Login box */
.login-box {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 1px;
    padding: 10px 40px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Instagram */
.logo-container {
    margin: 22px auto 12px;
}

.instagram-logo {
    max-width: 175px;
    height: 51px;
    object-fit: contain;
}

/* Formulaire de connexion */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}

/* Input wrapper avec label flottant */
.input-wrapper {
    position: relative;
    margin-bottom: 6px;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 38px;
    padding: 9px 8px 7px;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    background-color: #fafafa;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}

/* Cacher l'icône œil native du navigateur (Edge/Chrome) */
.input-wrapper input::-ms-reveal,
.input-wrapper input::-ms-clear,
.input-wrapper input::-webkit-credentials-auto-fill-button {
    display: none;
}

.input-wrapper input:focus {
    border-color: #a8a8a8;
}

.input-wrapper input.has-value {
    padding: 14px 8px 2px;
}

.input-wrapper label {
    position: absolute;
    left: 8px;
    top: 11px;
    font-size: 12px;
    color: #8e8e8e;
    pointer-events: none;
    transition: all 0.1s ease;
    transform-origin: left top;
}

.input-wrapper input:focus + label,
.input-wrapper input.has-value + label {
    top: 2px;
    font-size: 10px;
    color: #8e8e8e;
}

.input-wrapper input:focus,
.input-wrapper input.has-value {
    padding-top: 14px;
    padding-bottom: 2px;
}

/* Bouton afficher mot de passe */
.show-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    cursor: pointer;
    display: none;
    padding: 0;
}

.show-password:hover {
    color: #8e8e8e;
}

.input-wrapper input.has-value ~ .show-password {
    display: block;
}

/* Bouton de connexion */
.login-button {
    width: 100%;
    height: 32px;
    margin-top: 8px;
    margin-bottom: 8px;
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover:not(:disabled) {
    background-color: #1877f2;
}

.login-button:disabled {
    background-color: #0095f6;
    opacity: 0.7;
    cursor: default;
}

/* Footer */
.footer {
    padding: 0 20px;
    margin-bottom: 52px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 16px;
    max-width: 1066px;
    margin: 0 auto 12px;
}

.footer-nav a {
    color: #8e8e8e;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 12px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.language-select {
    background: transparent;
    border: none;
    color: #8e8e8e;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.copyright {
    color: #8e8e8e;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 875px) {
    .phone-mockup {
        display: none;
    }

    .content-wrapper {
        padding: 32px 20px;
    }
}

@media (max-width: 450px) {
    .login-box,
    .signup-box {
        border: none;
        background: transparent;
        padding: 10px 20px;
    }

    .login-section {
        max-width: 100%;
    }

    .footer-nav {
        padding: 0 40px;
    }
}

/* ============================================
   PAGE DE VERIFICATION / MOT DE PASSE
   ============================================ */

.verification-wrapper {
    padding-top: 60px;
}

.verification-box {
    padding: 20px 40px 30px;
}

.verification-icon {
    margin: 16px 0;
    color: #262626;
}

.verification-icon svg {
    color: #262626;
}

.verification-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 10px 0 8px;
    text-align: center;
}

.verification-text {
    font-size: 14px;
    color: #8e8e8e;
    text-align: center;
    line-height: 18px;
    margin-bottom: 8px;
}

/* Password form styles */
.password-form .input-wrapper {
    margin-bottom: 10px;
}

/* Success styles */
.success-icon {
    margin: 20px 0;
    color: #00a400;
}

.success-icon svg {
    color: #00a400;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 16px 0 12px;
    text-align: center;
}

.success-text {
    font-size: 14px;
    color: #8e8e8e;
    text-align: center;
    line-height: 20px;
    margin-bottom: 20px;
}

.continue-button {
    width: 100%;
    height: 44px;
    margin-top: 16px;
    background-color: #0095f6;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.continue-button:hover {
    background-color: #1877f2;
    text-decoration: none;
}
