/**
 * Otenza Login Custom Styling
 */

/* 1. Page Background & Layout Reset */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* Adjust to your font */
}

/* Override Magento's default page width constraints */
.page-layout-seller-login .page-wrapper,
.page-layout-seller-signup .page-wrapper {
    width: 100%;
    background-color: #373330; /* Dark background behind the card */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page-layout-seller-login .nav-toggle,
.page-layout-seller-signup .nav-toggle,
.page-layout-seller-login .page-header,
.page-layout-seller-signup .page-header,
.page-layout-seller-login .page-footer,
.page-layout-seller-signup .page-footer {
    display: none !important;
}

/* 2. Main Card Container */
.otenza-login-wrapper {
    display: flex;
    width: 100%;
    /* height: 100vh; */
    min-height: 600px;
    background-color: white;
    overflow: hidden;
}

/* 3. Left Side (Form) */
.otenza-login-left {
    flex: 2;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Logo Area */
.otenza-logo {
    display: flex;
    align-items: center;
}
.otenza-logo img {
    height: 100px;
}
.otenza-logo .logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Headings */
.otenza-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}
.otenza-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* Role Switcher (Customer | Seller) */
.otenza-role-switcher {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}
.actions-toolbar > .primary:last-child {
    width: 100%;
}
.role-btn {
    padding: 16px 30px;
    border-radius: 25px;
    border: 1px solid #312E8C;
    background: transparent;
    cursor: pointer;
    width: 190px;
    font-size: 14px;
    transition: all 0.3s;
}
.role-btn.active {
    background-color: #312E8C;
    color: #fff;
}
.role-btn.inactive {
    color: #D95C35;
    background-color: #fff;
}

/* Form Styling */
.otenza-form {
    width: 100%;
    max-width: 400px;
}
.otenza-form .field {
    margin-bottom: 20px;
}
.otenza-form .label {
    font-weight: 600;
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}
.otenza-input {
    width: 100% !important;
    height: 50px !important;
    border-radius: 10px !important;
    border: none !important;
    background-color: #fff !important;
    padding: 0 15px !important;
    font-size: 16px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px), print {
    .actions-toolbar > .primary .action, .actions-toolbar > .secondary .action {
        margin-bottom: 0;
        width: 100% !important;
    }
}
@media only screen and (max-width: 767px) {
    body[class*='marketplace-'] .page-main {
        padding-top: 0px !important;
    }
}
/* Submit Button */
.otenza-submit-btn {
    width: 100%;
    background-color: #D95C35;
    border: none;
    color: #fff;
    height: 50px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.otenza-submit-btn:hover {
    background-color: #bf4a26;
}

/* Divider (OR) */
.otenza-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #999;
}
.otenza-divider::before,
.otenza-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}
.otenza-divider span {
    padding: 0 10px;
}

.otenza-footer-links {
    text-align: center;
    width: 100%;
}
.otenza-footer-links a {
    color: #666;
    text-decoration: none;
}

/* 4. Right Side (Graphic) */
.otenza-login-right {
    padding: 30px;
    flex: 1;
    background-color: #fff;
    position: relative;
    /* height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
}
.otenza-login-right.fade-out {
        display: block !important; /* Hide graphic on mobile */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .otenza-login-wrapper {
        flex-direction: column;
        height: 100vh; /* Ensure the wrapper takes full viewport height on mobile */
        min-height: auto; /* Override the default min-height to allow it to shrink if content is less than 100vh */
    }
    .otenza-login-right.fade-out {
        display: none !important; /* Hide graphic on mobile */
    }
    .role-btn {
        width: 160px !important; /* Adjust button width for mobile */
    }
    .otenza-login-left {
        padding: 30px;
        height: 100%; /* Take 100% of the parent's height */
        justify-content: flex-start; /* Align content to the top, allowing it to scroll if needed */
    }
    .otenza-login-right {
        padding: 0px !important;
        overflow-y: auto !important; 
    }
    .copyright {
        display: none !important; /* Hide copyright on mobile */
    }
}

/* Target specifically the Marketplace Login/Signup Pages 
   using the ".marketplace-account-login" and ".marketplace-account-signup" body classes 
*/

.marketplace-account-login .wk-mp-page-wrapper,
.marketplace-account-signup .wk-mp-page-wrapper {
    width: 100% !important;       /* Override the calc(100% - 30rem) */
    max-width: 100% !important;   /* Remove any max-width limits */
    display: block !important;    /* Switch from inline-block to block */
    padding: 0 !important;        /* Remove default padding */
    margin: 0 !important;         /* Remove default margins */
    border: none !important;      /* Remove the default border */
    box-shadow: none !important;  /* Remove the default box-shadow */
    background: transparent !important; /* Let your new background show through */
}

/* Optional: Ensure the main columns container doesn't restrict you either 
*/
.marketplace-account-login .columns,
.marketplace-account-signup .columns {
    max-width: 100% !important;
    padding: 0 !important;
}
.otenza-login-left .messages {
    width: 100%;
    max-width: 400px; /* Match form width */
    margin-bottom: 20px;
}