* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #62c7c6;
    color: #2f3437;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.brand-panel,
.form-panel {
    height: 620px;
}

.brand-panel {
    position: relative;
    width: 62%;
    max-width: 850px;
    background: linear-gradient(135deg, #0ea99f 0%, #0c8f87 100%);
    overflow: hidden;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.form-panel {
    width: 38%;
    max-width: 430px;
    background: rgba(245, 252, 250, 0.82);
    backdrop-filter: blur(8px);
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.wave {
    position: absolute;
    width: 120%;
    height: 300px;
    left: -10%;
    border-radius: 50%;
    opacity: 0.32;
    background: #ffffff;
    transform: rotate(9deg);
}

.wave-1 {
    bottom: 160px;
}

.wave-2 {
    bottom: 40px;
    opacity: 0.22;
}

.brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 70px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-crm-box {
    width: 280px;
    margin-bottom: 35px;
}

.crm-logo {
    width: 180px;
    display: block;
    margin-bottom: 5px;
}

.ecopack-text {
    font-size: 28px;
    font-weight: 600;
    margin-top: 5px;
}

.brand-content h1 {
    margin: 0;
    font-size: 54px;
    letter-spacing: 2px;
    color: #263436;
}

.brand-content h2 {
    margin: 12px 0 45px;
    font-size: 24px;
    font-weight: 500;
    color: #315254;
}

.brand-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px; /* espace global entre éléments */
}

.quote {
    font-style: italic;
    font-size: 15px;
    opacity: 0.8;
}

.login-card {
    width: 82%;
}

.login-card h3 {
    font-size: 38px;
    margin: 0 0 45px;
    color: #263436;
}

.login-card label {
    display: block;
    margin: 22px 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #355254;
}

.login-card input {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 17px;
    outline: none;
    background: rgba(255,255,255,0.9);
    color: #263436;
}

.login-card input:focus {
    box-shadow: 0 0 0 2px rgba(14,169,159,0.35);
}

.login-card button {
    margin-top: 32px;
    width: 190px;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #14b8a6, #0f9b95);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(14,169,159,0.25);
    transition: all 0.25s ease;
}

.login-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(14,169,159,0.35);
}

.login-card button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(14,169,159,0.25);
}

.login-error {
    color: #b00020;
    font-weight: 600;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
        padding: 20px;
    }

    .brand-panel,
    .form-panel {
        width: 100%;
        max-width: none;
        height: auto;
        border-radius: 4px;
    }

    .brand-content {
        padding: 45px 35px;
    }

    .form-panel {
        padding: 40px 0;
    }

    .brand-content h1 {
        font-size: 38px;
    }

    .quote {
        font-size: 20px;
    }
}