/* ===== COMPLETE TOURMASTER MODERN STYLES ===== */

/* Global Reset and Base Styles */
.tourmaster-login-form *,
.tourmaster-login-form2 *,
.tourmaster-register-form *,
.tourmaster-user-top-bar * {
    box-sizing: border-box;
}

/* ===== LOGIN FORM CONTAINERS ===== */
.tourmaster-login-form-wrap,
.tourmaster-login-form2-wrap,
.tourmaster-register-form-wrap {    
    width: 100% !important;
    padding: 0px 40px !important;
    margin: 0 auto;    
    position: relative;
}

/* Main Login Forms */
.tourmaster-login-form,
.tourmaster-login-form2,
.tourmaster-register-form {
    border: none !important;
    padding: 0;
    background: transparent;
    box-shadow: none !important;
}

/* ===== FORM TITLES ===== */
.tourmaster-login-title,
.tourmaster-register-title {
    text-align: center;
    font-size: 28px !important;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px !important;
    margin-top: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== FORM FIELDS ===== */
.tourmaster-login-form-fields,
.tourmaster-register-form-fields {
    
    display: flex !important;
    flex-direction: column !important;
    margin: 0 0 18px 0!important;
}

.tourmaster-login-user,
.tourmaster-login-pass,
.tourmaster-register-form-fields > div {
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    width: 100% !important;
    padding: 0px !important;
}

/* Form Labels */
.tourmaster-login-form label,
.tourmaster-login-form2 label,
.tourmaster-register-form label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600;
    color: #374151 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Inputs */
.tourmaster-login-form input[type="text"],
.tourmaster-login-form input[type="password"],
.tourmaster-login-form input[type="email"],
.tourmaster-login-form2 input[type="text"],
.tourmaster-login-form2 input[type="password"],
.tourmaster-login-form2 input[type="email"],
.tourmaster-register-form input[type="text"],
.tourmaster-register-form input[type="password"],
.tourmaster-register-form input[type="email"],
.tourmaster-register-form input[type="date"],
.tourmaster-register-form select,
.tourmaster-register-form textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 !important;
}

/* Input Focus States */
.tourmaster-login-form input[type="text"]:focus,
.tourmaster-login-form input[type="password"]:focus,
.tourmaster-login-form input[type="email"]:focus,
.tourmaster-login-form2 input[type="text"]:focus,
.tourmaster-login-form2 input[type="password"]:focus,
.tourmaster-login-form2 input[type="email"]:focus,
.tourmaster-register-form input[type="text"]:focus,
.tourmaster-register-form input[type="password"]:focus,
.tourmaster-register-form input[type="email"]:focus,
.tourmaster-register-form input[type="date"]:focus,
.tourmaster-register-form select:focus,
.tourmaster-register-form textarea:focus {
    border-color: #fa3a6e !important;
    box-shadow: 0 0 0 4px rgba(250, 58, 110, 0.1) !important;
    transform: translateY(-1px);
}

/* Textarea Specific */
.tourmaster-register-form textarea {
    min-height: 100px !important;
    resize: vertical;
}

/* ===== SUBMIT BUTTONS ===== */
.tourmaster-login-submit,
.tourmaster-register-submit-wrap {
    margin: 32px 0 !important;
}

.tourmaster-login-form .tourmaster-button,
.tourmaster-login-form2 .tourmaster-button,
.tourmaster-register-form .tourmaster-button,
.tourmaster-register-submit {
    width: 100% !important;
    padding: 18px !important;
    background: linear-gradient(135deg, #fa3a6e 0%, #e91e63 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 0 10px 0 !important;
}

.tourmaster-login-form .tourmaster-button:hover,
.tourmaster-login-form2 .tourmaster-button:hover,
.tourmaster-register-form .tourmaster-button:hover,
.tourmaster-register-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(250, 58, 110, 0.4) !important;
}

.tourmaster-login-form .tourmaster-button:active,
.tourmaster-login-form2 .tourmaster-button:active,
.tourmaster-register-form .tourmaster-button:active,
.tourmaster-register-submit:active {
    transform: translateY(0) !important;
}


/* ===== BOTTOM SECTIONS ===== */
.tourmaster-login-bottom,
.tourmaster-register-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 32px;
}

.tourmaster-login-bottom-title,
.tourmaster-register-bottom-title {
    color: #374151 !important;
    font-size: 15px !important;
    margin-bottom: 16px !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tourmaster-login-bottom-link,
.tourmaster-register-bottom-link {
    color: #fa3a6e !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px !important;
    padding: 12px 24px;    
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ===== LOGIN FORM 2 SPECIFIC STYLES ===== */
.tourmaster-login2-right {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.tourmaster-login2-right-title {
    color: #374151 !important;
    font-size: 18px !important;
    margin-bottom: 16px !important;
    font-weight: 600;
}

.tourmaster-login2-right-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tourmaster-register-button,
.tourmaster-continue-button {
    background: transparent !important;
    color: #fa3a6e !important;
    border: 2px solid #fa3a6e !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin: 8px;
}

.tourmaster-register-button:hover,
.tourmaster-continue-button:hover {
    background: #fa3a6e !important;
    color: white !important;
    transform: translateY(-1px);
}

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

.tourmaster-register-term {
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.tourmaster-register-term input[type="checkbox"] {
    width: auto !important;
    margin-right: 8px;
    transform: scale(1.2);
}

.tourmaster-register-term a {
    color: #fa3a6e !important;
    text-decoration: none;
    font-weight: 500;
}

.tourmaster-register-term a:hover {
    color: #e91e63 !important;
}


/* ===== WRAPPER FOR FULL SCREEN LOGIN ===== */
.tourmaster-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===== NOTIFICATION STYLES ===== */
.tourmaster-notification-box {
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.4;
}

.tourmaster-notification-box.tourmaster-failure {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.tourmaster-notification-box.tourmaster-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

/* ===== USER UPDATE NOTIFICATIONS ===== */
.tourmaster-user-update-notification {
    padding: 16px 20px;
    border-radius: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.tourmaster-user-update-notification.tourmaster-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.tourmaster-user-update-notification.tourmaster-failure {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    .tourmaster-login-form-wrap,
    .tourmaster-login-form2-wrap,
    .tourmaster-register-form-wrap {
        padding: 32px 24px;
        width: 100% !important;
    }

    .tourmaster-login-title,
    .tourmaster-register-title {
        font-size: 24px !important;
    }

    .tourmaster-login-form input[type="text"],
    .tourmaster-login-form input[type="password"],
    .tourmaster-login-form input[type="email"],
    .tourmaster-login-form2 input[type="text"],
    .tourmaster-login-form2 input[type="password"],
    .tourmaster-login-form2 input[type="email"],
    .tourmaster-register-form input[type="text"],
    .tourmaster-register-form input[type="password"],
    .tourmaster-register-form input[type="email"],
    .tourmaster-register-form input[type="date"],
    .tourmaster-register-form select,
    .tourmaster-register-form textarea,
    .tourmaster-login-form .tourmaster-button,
    .tourmaster-login-form2 .tourmaster-button,
    .tourmaster-register-form .tourmaster-button,
    .tourmaster-register-submit {
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }

    .tourmaster-user-top-bar-nav {
        left: 0;
        right: auto;
        min-width: 180px;
    }
}

/* ===== LIGHTBOX OVERRIDES ===== */
.tourmaster-lightbox .tourmaster-login-form-wrap,
.tourmaster-lightbox .tourmaster-register-form-wrap {
    background: white;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

/* ===== FORM FIELD SPACING FIXES ===== */
.tourmaster-login-form p,
.tourmaster-login-form2 p,
.tourmaster-register-form > div {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

/* Clear any conflicting styles
.tourmaster-form-field.tourmaster-with-border {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
} */

/* Ensure proper field alignment */
.tourmaster-login-form-fields .clearfix,
.tourmaster-register-form-fields .clearfix {
    margin-bottom: 0;
}

/* Social login integration */
.nextend-social-login {
    margin-top: 24px;
    text-align: center;
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 20px 0;
    text-align: center;
}

/* ===== USER CONTENT BLOCKS ===== */
.tourmaster-user-content-block {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tourmaster-user-content-title {
    font-size: 24px !important;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
}

.tourmaster-user-content-title-link {
    color: #fa3a6e !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    float: right;
    margin-top: 4px;
}

.tourmaster-user-content-title-link:hover {
    color: #e91e63 !important;
}

/* ===== FORGOT PASSWORD LINK ===== */
.tourmaster-login-form p.tourmaster-login-lost-password {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.tourmaster-login-lost-password a {
    color: #fa3a6e !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tourmaster-login-lost-password a:hover {
    color: #e91e63 !important;
}

.tourmaster-login-template-content,
.tourmaster-register-template-content{
 padding-top: 0px !important;
}

/* Tablet screens */
@media (min-width: 768px) and (max-width: 991px) {
    .tourmaster-lightbox-content-wrap {
        width: 60% !important;
    }
}

/* Desktop screens */
@media (min-width: 992px) {
    .tourmaster-lightbox-content-wrap {
        width: 40% !important;
    }
}