/* ========================================
   E-COMMERCE LOGIN & REGISTER - MINIMAL MODERN
   ======================================== */

/* ========================================
   MAIN CONTAINER & BACKGROUND
   ======================================== */

.mtop40 {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Background shapes */
.mtop40::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3498db 0%, rgba(52, 152, 219, 0.1) 100%);
    border-radius: 50%;
    z-index: 1;
}

.mtop40::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 50%;
    z-index: 1;
}

/* Ampliare il form container */
.mtop40 > .col-md-4 {
    width: 45%;
    margin-left: 0;
}

.mtop40 > .col-md-offset-4 {
    margin-left: 0;
}

.mtop40 > .col-sm-8 {
    width: 55%;
    margin-left: 0;
}

/* ========================================
   HEADING
   ======================================== */

.login-heading,
.register-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* ========================================
   LOGIN FORM & PANEL
   ======================================== */

.login-form .panel_s,
.register-form .panel_s {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.login-form .panel_s:hover,
.register-form .panel_s:hover {
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.08);
    border-color: #3498db;
}

.panel-body {
    padding: 45px;
}

.panel-footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 20px 35px;
    border-radius: 0 0 12px 12px;
}

/* ========================================
   FORM GROUPS & LABELS
   ======================================== */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.2px;
}

.form-group label .text-danger {
    color: #e74c3c;
    margin-left: 2px;
}

/* ========================================
   INPUT FIELDS
   ======================================== */

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-control::placeholder {
    color: #999;
    font-size: 13px;
}

.form-control:focus {
    border-color: #3498db;
    background: #fff;
    color: #333;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.08);
    outline: none;
}

.form-control:hover:not(:focus) {
    border-color: #d0d0d0;
}

/* ========================================
   SELECT PICKER
   ======================================== */

.selectpicker {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 13px !important;
}

.selectpicker:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.08) !important;
}

.bootstrap-select > .dropdown-toggle {
    border: none !important;
    padding: 10px 13px !important;
    background: #fff !important;
}

.dropdown-menu.show {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dropdown-menu.show > li > a {
    color: #333;
    transition: all 0.2s ease;
    font-size: 13px;
}

.dropdown-menu.show > li > a:hover {
    background: #f5f5f5;
    color: #3498db;
}

/* ========================================
   CHECKBOX & REMEMBER
   ======================================== */

.checkbox {
    margin: 18px 0;
    display: flex;
    align-items: center;
}

.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #3498db;
}

.checkbox label {
    font-weight: 400;
    color: #555;
    display: inline;
    margin: 0;
    font-size: 13px;
    cursor: pointer;
}

.checkbox label:hover {
    color: #3498db;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.btn-primary {
    background: #3498db;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover {
    background: #2980b9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-success {
    background: #27ae60;
    color: #fff;
    margin-bottom: 10px;
}

.btn-success:hover {
    background: #229954;
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   LINKS
   ======================================== */

a[href*="forgot_password"] {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    margin-top: 12px;
    transition: all 0.3s ease;
    position: relative;
}

a[href*="forgot_password"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3498db;
    transition: width 0.3s ease;
}

a[href*="forgot_password"]:hover::after {
    width: 100%;
}

a[href*="register"] {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
}

a[href*="register"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3498db;
    transition: width 0.3s ease;
}

a[href*="register"]:hover::after {
    width: 100%;
}

/* ========================================
   RECAPTCHA
   ======================================== */

.g-recaptcha {
    transform: scale(0.92);
    transform-origin: 0 0;
    margin: 15px 0;
}

.register-recaptcha {
    margin-top: 18px;
    margin-bottom: 18px;
}

/* ========================================
   FORM ERRORS
   ======================================== */

.help-block {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.form-control.input-sm.error,
.form-control.input-md.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08) !important;
}

/* ========================================
   REGISTER SPECIFIC
   ======================================== */

.register-contact-info-heading,
.register-company-info-heading {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
    letter-spacing: 0.2px;
}

/* ========================================
   TERMS & CONDITIONS
   ======================================== */

.register-terms-and-conditions-wrapper {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    margin: 18px 0;
    border-left: 3px solid #3498db;
}

.register-terms-and-conditions-wrapper .checkbox {
    margin: 0;
}

.register-terms-and-conditions-wrapper label {
    font-size: 12px;
    font-weight: 400;
}

/* ========================================
   CUSTOM FIELDS
   ======================================== */

.register-contact-custom-fields,
.register-company-custom-fields {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8e8e8;
}

/* ========================================
   HONEYPOT
   ======================================== */

.honey-element {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .mtop40 {
        padding: 30px 15px;
    }

    .mtop40 > .col-md-4 {
        width: 100%;
    }

    .mtop40 > .col-sm-8 {
        width: 100%;
    }

    .mtop40::before {
        width: 200px;
        height: 200px;
        top: -80px;
        right: -80px;
    }

    .mtop40::after {
        width: 150px;
        height: 150px;
        bottom: -40px;
        left: -40px;
    }

    .panel-body {
        padding: 30px;
    }

    .panel-footer {
        padding: 18px 30px;
    }

    .login-heading,
    .register-heading {
        font-size: 22px;
    }

    .col-md-6 {
        margin-bottom: 25px;
    }

    .g-recaptcha {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .mtop40 {
        padding: 20px 12px;
    }

    .panel-body {
        padding: 20px;
    }

    .panel-footer {
        padding: 12px 20px;
    }

    .login-heading,
    .register-heading {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .form-control {
        font-size: 16px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .col-md-offset-1,
    .col-md-offset-2,
    .col-md-offset-4,
    .col-sm-offset-2 {
        margin-left: 0;
    }

    .col-md-10 {
        width: 100%;
    }
}
