@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../../assests/Images/world-Tour.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    /* removes background */
    background-color: transparent !important;
    /* makes it transparent */
    -webkit-text-fill-color: white !important;
    /* keeps normal text color */
    transition: background-color 5000s ease-in-out 0s !important;
    /* prevents autofill flash */
}

.wrapper {
    position: relative;
    width: 750px;
    height: 450px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
    /* border: 2px solid #7eb6ff;
    box-shadow: 0 0 25px #7eb6ff; */
}

.wrapper .form-box {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    /* background: red; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper .form-box.login {
    left: 0;
    padding: 0 60px 0 40px;
    /* display: none; */
}

.wrapper .form-box.login .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition: .7s ease;
    transition-delay: calc(.1s * var(--j));
}

.wrapper.active .form-box.login .animation {
    transform: translateX(-120%);
    opacity: 1;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--i));
}

.wrapper .form-box.register {
    right: 0;
    padding: 0 40px 0 60px;
    /* display: none; */
    pointer-events: none;
}

.wrapper.active .form-box.register {
    pointer-events: auto;
}

.wrapper .form-box.register .animation {
    transform: translateX(120%);
    transition: .7s ease;
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--j));
}

.wrapper.active .form-box.register .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(.1s * var(--i));
}

.form-box h2 {
    font-size: 32px;
    color: #fff;
    text-align: center;
}

.form-box .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 2px solid #fff;
    padding-right: 23px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: .5s;

}

.input-box input:focus,
.input-box input:valid {
    border-bottom-color: #7eb6ff;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
    color: #7eb6ff;
}

.input-box i {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
}

.input-box input:focus~i,
.input-box input:valid~i {
    color: #7eb6ff;
}

.btn {
    position: relative;
    width: 100%;
    height: 45px;
    background: transparent;
    border: 2px solid #7eb6ff;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    z-index: -1;
    content: '';
    top: -100%;
    left: 0;
    position: absolute;
    width: 100%;
    height: 300%;
    transition: .5s;
    background: linear-gradient(#081b29, #7eb6ff, #081b29, #7eb6ff);
}

.btn:hover::before {
    top: 0;
}

.text-danger {
    color: white;
}

.form-box .logreg-link {
    font-size: 14.5px;
    color: #fff;
    text-align: center;
    margin: 20px 0 10px;
}

.logreg-link p a {
    color: #7eb6ff;
    text-decoration: none;
    font-weight: 600;
}

.logreg-link p a:hover {
    text-decoration: underline;
}

.wrapper .info-text {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    /* background: red; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper .info-text.login {

    right: 0;
    text-align: right;
    padding: 0 40px 60px 150px;

}

.wrapper .info-text.login .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition: .7s ease;
    transition-delay: calc(.1s * var(--j));

}

.wrapper.active .info-text.login .animation {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--i));

}

.wrapper .info-text.register {
    left: 0;
    text-align: left;
    padding: 0 150px 60px 40px;
    pointer-events: none;
    /* display: none; */
}

.wrapper.active .info-text.register {
    pointer-events: auto;
}

.wrapper .info-text.register .animation {
    transform: translateX(-120%);
    opacity: 0;
    filter: blur(10px);
    transition: .7s ease;
    transition-delay: calc(.1s * var(--j));

}

.wrapper.active .info-text.register .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(.1s * var(--i));

}

.info-text h2 {

    font-size: 36px;
    color: #fff;
    line-height: 1.3;
    text-transform: uppercase;
}

.info-text p {

    font-size: 16px;
    color: #fff;

}

.wrapper .bg-animate {
    position: absolute;
    top: -4px;
    right: 0;
    width: 850px;
    height: 600px;
    background: linear-gradient(45deg, #081b29, #7eb6ff);
    border-bottom: 3px solid #7eb6ff;
    transform: rotate(10deg) skewY(40deg);
    /* transform: rotate(0) skewY(0); */
    transform-origin: bottom right;
    transition: 1.5s ease;
    transition-delay: 1.6s;
}

.wrapper.active .bg-animate {

    transform: rotate(0) skewY(0);
    transition-delay: .5s;

}

.wrapper .bg-animate2 {
    position: absolute;
    top: 100%;
    left: 250px;
    width: 850px;
    height: 700px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 3px solid #7eb6ff;
    /* transform: rotate(-11deg) skewY(-41deg); */
    transform: rotate(0deg) skewY(0deg);
    transform-origin: bottom left;
    transition: 1.5s ease;
    transition-delay: .5s;
}

.wrapper.active .bg-animate2 {
    transform: rotate(-11deg) skewY(-41deg);
    transition-delay: 1.2s;
}

/* Hide mobile elements by default */
.mobile-admin-panel {
    display: none;
}

/* ============================================ */
/* MOBILE LOGIN DESIGN - MATCHING IMAGE */
/* ============================================ */
@media (max-width: 768px) {

    /* Hide desktop wrapper on mobile */
    .wrapper {
        display: none !important;
    }

    /* Show mobile admin panel */
    .mobile-admin-panel {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100vw;
        min-height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        padding: 20px;
        /* background: linear-gradient(135deg, #e8eef7 0%, #d6e3f0 30%, #c4d7ea 100%); */
    }

    /* Mobile login card */
    .mobile-login-card {
        width: 100%;
        max-width: 380px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.1),
            0 8px 30px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(20px);
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Close button */
    .mobile-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .mobile-close-btn:hover {
        background: rgba(0, 0, 0, 0.2);
        transform: scale(1.1);
    }

    .close-x {
        font-size: 18px;
        font-weight: bold;
        color: #666;
        line-height: 1;
    }

    /* Logo section */
    .mobile-logo-section {
        text-align: center;
        padding: 40px 30px 20px;
    }

    .mobile-company-logo {
        width: 120px;
        height: auto;
        /* opacity: 0.9; */
        filter: brightness(0);
    }

    /* Title section */
    .mobile-title-section {
        text-align: center;
        padding: 0 30px 30px;
    }

    .mobile-main-heading {
        font-size: 24px;
        font-weight: 600;
        color: #333;
        margin: 0;
        letter-spacing: -0.5px;
    }

    /* Form section */
    .mobile-form-section {
        padding: 0 30px 40px;
    }

    .mobile-form-group {
        margin-bottom: 20px;
    }

    .mobile-form-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #555;
        margin-bottom: 8px;
    }

    .mobile-form-input {
        width: 100%;
        height: 50px;
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #e1e5e9;
        border-radius: 12px;
        outline: none;
        padding: 0 15px;
        color: #333 !important;
        font-size: 16px;
        font-weight: 400;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .mobile-form-input::placeholder {
        color: #999;
        font-weight: 400;
    }

    .mobile-form-input:focus {
        border-color: #4a90e2;
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }

    /* Password wrapper */
    .mobile-password-wrapper {
        position: relative;
    }

    .mobile-password-input {
        padding-right: 50px;
    }

    .mobile-password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        color: #999;
        font-size: 16px;
        transition: color 0.3s ease;
    }

    .mobile-password-toggle:hover {
        color: #666;
    }

    .password-eye {
        font-size: 16px;
    }

    /* Submit button */
    .mobile-submit-button {
        width: 100%;
        height: 50px;
        background: #4a90e2;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        color: white;
        margin-top: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    }

    .mobile-submit-button:hover {
        background: #357abd;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    }

    .mobile-submit-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .mobile-admin-panel {
        padding: 15px !important;
    }

    .mobile-login-card {
        max-width: 350px !important;
    }

    .mobile-logo-section {
        padding: 35px 25px 20px !important;
    }

    .mobile-company-logo {
        width: 100px !important;
    }

    .mobile-title-section {
        padding: 0 25px 25px !important;
    }

    .mobile-main-heading {
        font-size: 22px !important;
    }

    .mobile-form-section {
        padding: 0 25px 35px !important;
    }

    .mobile-form-input {
        height: 48px !important;
        font-size: 15px !important;
    }

    .mobile-submit-button {
        height: 48px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 768px) {

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    select:-webkit-autofill {
        -webkit-text-fill-color: black !important;
    }
}