
/* ==========================================================================
   DREAM SERVICES LOGIN PAGE - CUSTOM CSS
   Refonte Complète selon directives Prompt Expert
   ========================================================================== */

/* --- GENERAL RESET & LAYOUT --- */
.dream-login-page {
    font-family: inherit;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    background: #ffffff;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Hide theme chrome on auth pages */
body#authentication #header,
body#authentication header,
body#authentication #footer,
body#authentication .footer-container,
body#authentication .breadcrumb,
body#authentication .header-top,
body#authentication .elementor-location-header,
body#registration #header,
body#registration header,
body#registration #footer,
body#registration .footer-container,
body#registration .breadcrumb,
body#registration .header-top,
body#registration .elementor-location-header {
    display: none !important;
}

body#authentication,
body#registration {
    background-color: #ffffff !important;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

body#authentication #wrapper,
body#registration #wrapper {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    box-shadow: none !important;
}

body#authentication #content-wrapper,
body#registration #content-wrapper {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dream-split-container {
    display: flex;
    flex: 1; /* Takes available height */
    height: 100%;
    min-height: 0;
}

/* Auth media placement toggles (driven by module) */
.dream-split-container.dream-auth-media-pos-left {
    flex-direction: row-reverse;
}

.dream-split-container.dream-auth-media-disabled .dream-col-right {
    display: none;
}

.dream-split-container.dream-auth-media-disabled .dream-col-left {
    width: 100%;
}

/* --- LEFT COLUMN --- */
.dream-col-left {
    width: 50%;
    padding: 60px 8%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.dream-login-content {
    text-align: center;
}

.dream-logo {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.dream-logo img {
    max-height: 60px;
    margin-bottom: 30px;
}

/* Make light logos visible on white */
.dream-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 26px;
    padding: 10px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.dream-logo img {
    margin-bottom: 0;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

.dream-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0;
    padding-bottom: 54px;
}

.dream-highlight {
    color: #7A1D7A;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    display: block;
    margin-top: 12px;
}

.dream-subtitle {
    font-size: 1.2rem;
    color: #7A1D7A;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 3px solid #7A1D7A;
    display: inline-block;
    padding-bottom: 5px;
    margin: 0 0 38px;
}

/* --- FORM STYLING --- */
.dream-login-page .form-group {
    margin-bottom: 20px;
}

.dream-auth-help {
    margin: 18px 0 26px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(17, 24, 39, 0.04);
    color: #111827;
    text-align: left;
    font-weight: 650;
    line-height: 1.35;
}

.dream-auth-email-check {
    margin: 16px 0 22px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(17, 24, 39, 0.03);
    color: #111827;
    text-align: left;
    font-weight: 650;
    line-height: 1.35;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dream-auth-email-check.alert-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.10);
}

.dream-auth-email-check::before {
    content: "\f05a";
    font-family: 'FontAwesome';
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
    opacity: 0.9;
}

.dream-auth-email-check.alert-warning::before {
    content: "\f071";
}

.dream-auth-email-check a {
    font-weight: 800;
    text-decoration: underline;
}

/* --- MODERN ALERTS (errors / warnings / infos) --- */
.dream-login-page #notifications {
    margin: 0 0 16px;
}

.dream-login-page #notifications .container {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}

.dream-login-page .alert {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    padding: 14px 16px;
    margin: 14px 0 18px;
    text-align: left;
    font-weight: 650;
    line-height: 1.35;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.08);
}

.dream-login-page .alert::before {
    content: "\f05a";
    font-family: 'FontAwesome';
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
    opacity: 0.9;
}

.dream-login-page .alert a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.dream-login-page .alert a:hover,
.dream-login-page .alert a:focus {
    opacity: 0.95;
}

.dream-login-page .alert.alert-danger,
.dream-login-page .alert-danger {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(220, 38, 38, 0.08);
    color: #7f1d1d;
}

.dream-login-page .alert.alert-danger::before,
.dream-login-page .alert-danger::before {
    content: "\f071";
}

.dream-login-page .alert.alert-warning,
.dream-login-page .alert-warning {
    border-color: rgba(245, 158, 11, 0.30);
    background: rgba(245, 158, 11, 0.10);
    color: #7c2d12;
}

.dream-login-page .alert.alert-warning::before,
.dream-login-page .alert-warning::before {
    content: "\f071";
}

.dream-login-page .alert.alert-info,
.dream-login-page .alert-info {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.10);
    color: #1e3a8a;
}

.dream-login-page .alert.alert-info::before,
.dream-login-page .alert-info::before {
    content: "\f05a";
}

.dream-login-page .alert.alert-success,
.dream-login-page .alert-success {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.10);
    color: #064e3b;
}

.dream-login-page .alert.alert-success::before,
.dream-login-page .alert-success::before {
    content: "\f058";
}

.dream-login-page .form-control {
    background-color: #ffffff;
    border: 1px solid #7A1D7A;
    border-radius: 10px; /* Requested 10px */
    height: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
}

.dream-login-page textarea.form-control {
    height: auto;
    min-height: 110px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.dream-login-page .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(122, 29, 122, 0.2);
}

.dream-login-page .input-group-addon {
    display: none; /* Hide standard prestashop icons if any */
}

.dream-login-page .form-footer {
    margin-top: 10px;
}

.dream-login-page .login-form .form-footer,
.dream-login-page #login-form .form-footer {
    display: block !important;
}

.dream-login-page #submit-login {
    display: flex !important;
}

/* Password show/hide button aligned with rounded inputs */
.dream-login-page .input-group {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.dream-login-page .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.dream-login-page .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.dream-login-page .input-group-btn {
    display: flex;
    flex: 0 0 auto;
}

.dream-login-page .input-group-btn .btn {
    height: 50px;
    border: 1px solid #7A1D7A;
    border-left: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #7A1D7A;
    color: #fff;
    font-weight: 700;
    padding: 0 16px;
    white-space: nowrap;
    min-width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide show/hide text and use an eye icon */
.dream-login-page button[data-action="show-password"] {
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px;
    overflow: hidden;
}

.dream-login-page button[data-action="show-password"]::before {
    content: "\f06e";
    font-family: 'FontAwesome';
    font-size: 18px !important;
    line-height: 1;
    color: #ffffff;
    text-indent: 0;
}

.dream-login-page button[data-action="show-password"].is-password-visible::before {
    content: "\f070";
}

.dream-login-page .input-group-btn .btn:hover,
.dream-login-page .input-group-btn .btn:focus {
    background-color: #9c259c;
    color: #fff;
}

/* Login Button */
#submit-login.btn-primary {
    background-color: #7A1D7A;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

/* Registration submit button (customer-form.tpl) */
.dream-login-page .form-footer .btn.btn-primary {
    background-color: #7A1D7A;
    border: none;
    border-radius: 10px;
    height: 50px;
    padding: 0 30px;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
    float: none !important;
}

.dream-login-page .form-footer .btn.btn-primary:hover {
    background-color: #9c259c;
}

#submit-login.btn-primary:hover {
    background-color: #9c259c;
}

/* Forgot Password & Checkbox */
.dream-login-page .forgot-password {
    text-align: right;
    font-size: 0.9rem;
}
.dream-login-page .forgot-password a {
    color: #333;
    text-decoration: underline;
}

/* --- REGISTER SECTION --- */
.dream-register-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.dream-register-section h3 {
    color: #7A1D7A;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.dream-btn-register {
    background-color: #7A1D7A;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.3s;
}

.dream-btn-register:hover {
    background-color: #9c259c;
    color: white;
}

/* --- RIGHT COLUMN --- */
.dream-col-right {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 800px at 70% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
                linear-gradient(135deg, #0b1220, #111827);
    overflow: hidden;
}

.dream-auth-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.dream-auth-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.dream-auth-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 900ms ease;
}

.dream-auth-slide.is-active {
    opacity: 1;
}

.dream-auth-media-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dream-auth-media-video {
    object-fit: cover;
}

.dream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, var(--dream-auth-overlay-opacity, 0.55));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dream-auth-overlay-text, #ffffff);
    padding: 20px;
}

.dream-overlay-content h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: inherit;
}

.dream-overlay-content p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: inherit;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* --- FOOTER --- */
.dream-footer {
    background-color: #7A1D7A;
    color: white;
    padding: 40px 20px;
    margin-top: auto; /* Push to bottom if content is small */
}

.dream-footer a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dream-footer a:hover {
    opacity: 1;
}

.dream-socials {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.dream-socials a {
    margin: 0 10px;
}

.dream-coordonnees p {
    font-weight: 700;
}

.dream-footer-links li {
    margin-bottom: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .dream-split-container {
        flex-direction: column;
    }
    .dream-col-left {
        width: 100%;
        padding: 40px 20px;
        justify-content: flex-start;
    }
    .dream-col-right {
        display: none;
    }
}

@media (max-height: 750px) {
    .dream-col-left {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .dream-title {
        padding-bottom: 34px;
    }
    .dream-col-right {
        display: none;
    }
}
