/* =========================================================
VDays CRM - Login Page
========================================================= */

/* ---------- Reset ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
}

/* =========================================================
Main Login Page
========================================================= */

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/login-travel2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    
}

/* =========================================================
Background Overlay
========================================================= */

/*.login-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient( 135deg, rgba(5, 20, 35, 0.82), rgba(10, 50, 70, 0.60), rgba(0, 0, 0, 0.45) );
    z-index: 1;
    
}*/

.login-overlay {
   display:none;
}

/* =========================================================
Branding
========================================================= */

.login-brand {
     position: absolute;
    top: 35px;
    left: 45px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    z-index: 2;
    
}

    
/* Logo */

.brand-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    
}

/* Brand Text */

.brand-text {
    width: 148px;
    height: 35px;
    overflow: hidden;
}

    .brand-text img {
        width:100%;
    }

.brand-text h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    
}

.brand-text p {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    
}

/* =========================================================
Login Content
========================================================= */

.login-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 2;
    }

/* =========================================================
Login Card
========================================================= */

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.30), 0 5px 20px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(15px);
    animation: loginCardAppear 0.6s ease-out;
    
}

/* =========================================================
Login Card Header
========================================================= */

.login-card-header {
    text-align: center;
    margin-bottom: 30px;   
    
}

    .login-card-header h2 {
        color: #162b3a;
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 8px;
        
    }

    .login-card-header p {
        color: #71808c;
         font-size: 14px;
        
    }

/* =========================================================
Login Form
========================================================= */

.login-form {
    width: 100%;
}

/* =========================================================
Form Group
========================================================= */

.form-group {
    margin-bottom: 20px;
}

/* =========================================================
Labels
========================================================= */

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 14px;
    font-weight: 500;
    
}

/* =========================================================
Input Fields
========================================================= */

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    background: #ffffff;
    color: #263746;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    
}

    /* Input Focus */

    .form-control:focus {
        border-color: #168aad;
        box-shadow: 0 0 0 3px rgba(22, 138, 173, 0.12);
        
    }

    /* Placeholder */

    .form-control::placeholder {
        color: #a4afb7;
    }

/* =========================================================
Remember Me / Forgot Password
========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    
}

/* Remember Me */

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667782;
    font-size: 13px;
    
}

    .remember-me input[type="checkbox"] {
        width: 15px;
        height: 15px;
        cursor: pointer;
        accent-color: #168aad;
        
    }

/* =========================================================
   Password Input With Eye Icon
   ========================================================= */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    padding-right: 48px;
}


/* Eye icon inside textbox */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8a95;
    cursor: pointer;
    user-select: none;
    z-index: 5;
}

    .password-toggle:hover {
        color: #168aad;
    }

    .password-toggle svg {
        width: 20px;
        height: 20px;
        display: block;
    }

/* Forgot Password */

.forgot-password {
    color: #168aad;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    
}

    .forgot-password:hover {
        color: #126782;
        text-decoration: underline;
        
    }

/* =========================================================
Login Button
========================================================= */

.login-button {
    width: 100%;
    /*    height: 48px;*/
    padding: 12px;
    margin-top: 5px;
    border: none;
    border-radius: 10px;
    background: linear-gradient( 135deg, #168aad, #126782 );
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    /* Button Hover */

    .login-button:hover {
        transform: translateY(-1px);
         box-shadow: 0 8px 20px rgba(18, 103, 130, 0.30);
        
    }

    /* Button Click */

    .login-button:active {
        transform: translateY(0);
    }

/* =========================================================
Verify OTP Page
========================================================= */

/* OTP Input */

.otp-input {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 6px;
    padding-left: 20px;
    padding-right: 20px;
    
}

    /* OTP Input Placeholder */

    .otp-input::placeholder {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: normal;
        color: #a4afb7;
            }

/* Back to Login */

.otp-back {
    margin-top: 20px;
    text-align: center;
    
}

    .otp-back a {
        color: #168aad;
         font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s ease;
        
    }

        .otp-back a:hover {
            color: #126782;
             text-decoration: underline;
            
        }

/* OTP Card Header */

.login-card-header {
    text-align: center;
    margin-bottom: 30px;
    
}

    .login-card-header h2 {
        color: #162b3a;
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 8px;
        
    }

    .login-card-header p {
        color: #71808c;
        font-size: 14px;
        line-height: 1.5;
        
    }

/* =========================================================
OTP Error Message
========================================================= */

.otp-error-message {
    margin-bottom: 20px;
}

.otp-validation-summary {
    margin: 0;
    padding: 10px 14px;
    border-radius: 6px;
    background-color: #fff1f1;
    border: 1px solid #f3b6b6;
    color: #c62828;
    font-size: 13px;
    line-height: 1.4;
}

    .otp-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

    .otp-validation-summary li {
        margin: 0;
    }

/* Forgot Password / Reset Password */

.forgot-password-message {
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 15px;
    border-radius: 6px;
}

.reset-invalid-content {
    text-align: center;
    margin-top: 10px;
}

    .reset-invalid-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

.reset-link-button {
    display: block;
    text-decoration: none;
    text-align: center;
}

/* Responsive OTP */

@media (max-width: 480px) {

    
    .otp-input {
        font-size: 18px;
        letter-spacing: 5px;
    }

    .login-card-header h2 {
        font-size: 23px;
    }

    .login-card-header p {
        font-size: 13px;
    }

    
}


/* =========================================================
Validation
========================================================= */

.field-validation-error {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
    
}

.validation-summary-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff1f2;
    color: #dc3545;
    font-size: 13px;
    
}

/* =========================================================
Footer
========================================================= */

.login-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 2;
    text-align: center;
    color: #34495e;
    font-size: 12px;
}

/* =========================================================
Card Animation
========================================================= */

@keyframes loginCardAppear {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

    
}

/* =========================================================
Responsive - Tablet
========================================================= */

@media (max-width: 768px) {

    
    .login-brand {
        top: 25px;
        left: 25px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .brand-text h1 {
        font-size: 19px;
    }

    .brand-text p {
        font-size: 11px;
    }

    .login-content {
        padding: 20px;
    }

    .login-card {
        max-width: 400px;
        padding: 30px 25px;
        border-radius: 16px;
    }

    .login-card-header h2 {
        font-size: 25px;
    }

    
}

/* =========================================================
Responsive - Mobile
========================================================= */

@media (max-width: 480px) {

    
    .login-brand {
        top: 20px;
        left: 20px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-text h1 {
        font-size: 17px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .login-card-header {
        margin-bottom: 25px;
    }

        .login-card-header h2 {
            font-size: 23px;
        }

    .login-footer {
        bottom: 10px;
        font-size: 10px;
    }

    
}
