/**
 * B2B Login Page Styles
 */

/* Reset page */
.b2b-login-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Overlay */
.b2b-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Container */
.b2b-login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Login box */
.b2b-login-box {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Logo */
.b2b-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.b2b-login-logo img {
    max-height: 60px;
    width: auto;
}

/* Title */
.b2b-login-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 30px;
}

/* Form groups */
.b2b-form-group {
    margin-bottom: 20px;
}

/* Input fields */
.b2b-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.b2b-input:focus {
    outline: none;
    border-color: #004897;
    box-shadow: 0 0 0 3px rgba(0, 72, 151, 0.1);
}

.b2b-input::placeholder {
    color: #999;
}

/* Password field with toggle */
.b2b-password-group {
    position: relative;
}

.b2b-password-group .b2b-input {
    padding-right: 50px;
}

.b2b-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
}

.b2b-password-toggle:hover {
    color: #666;
}

/* Forgot password */
.b2b-forgot-password {
    text-align: center;
    margin-bottom: 25px;
}

.b2b-forgot-password a {
    color: #004897;
    font-size: 0.9rem;
    text-decoration: underline;
}

.b2b-forgot-password a:hover {
    color: #003366;
}

/* Submit button */
.b2b-submit-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: #004897;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.b2b-submit-btn:hover {
    background: #003366;
}

.b2b-submit-btn:active {
    transform: scale(0.98);
}

/* Error messages */
.b2b-errors {
    margin-top: 20px;
    padding: 15px;
    background: #fee2e2;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.9rem;
    text-align: center;
}

.b2b-errors p {
    margin: 0;
}

/* Hide PrestaShop default elements */
.b2b-login-page ~ #header,
.b2b-login-page ~ #footer,
.b2b-login-page ~ .breadcrumb,
#header,
#footer,
.breadcrumb {
    display: none !important;
}

/* Page wrapper fix */
body.page-module-b2blogin-login #wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

body.page-module-b2blogin-login #content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

body.page-module-b2blogin-login {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    .b2b-login-box {
        padding: 40px 25px;
    }

    .b2b-login-title {
        font-size: 1.2rem;
    }

    .b2b-input {
        padding: 14px 16px;
    }

    .b2b-submit-btn {
        padding: 14px 16px;
    }
}
/* Success message */
.b2b-success {
    margin-bottom: 20px;
    padding: 15px;
    background: #dcfce7;
    border-radius: 8px;
    color: #16a34a;
    font-size: 0.9rem;
    text-align: center;
}

.b2b-success p {
    margin: 0;
}

/* Form info text */
.b2b-form-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Back link */
.b2b-back-link {
    text-align: center;
    margin-top: 25px;
}

.b2b-back-link a {
    color: #004897;
    font-size: 0.9rem;
    text-decoration: none;
}

.b2b-back-link a:hover {
    text-decoration: underline;
}