@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "montserrat", serif;
    letter-spacing: 0.4px;
}

/* Root styles */
:root {
    --primary-color: #ffa500;
    --secondary-color: #1751ff;
    --third-color: #d63636;
}

/* Global styles */
body {
    background-color: #f4f7fc;
    color: #333;
    min-height: 100vh; /* ✅ allows safe fit */
    margin: 0;
    overflow-x: hidden; /* ✅ prevents horizontal scrolling */
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    text-decoration: none;
    color: blue;
}

ul {
    list-style: none;
}

h2 {
    font-weight: 400;
}

button {
    transition: 0.4s;
    cursor: pointer;
    border-radius: 4px;
}

.landing_button {
    padding: 10px 25px;
    background-color: #004dba;
    color: #ffffff;
    border: 1px solid #0049b0;
}

.landing_button:hover {
    background-color: white;
    color: rgb(0, 0, 0);
}
.landing_body {
    background-image: url('/assets/mountain-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}
.landing_page {
    text-align: center;
    background-color: #fff;
    opacity: 0.95;
    padding: 20px 30px;
    border-radius: 6px;
    box-shadow: 2px 4px 18px #000000;
}
.landing_image {
    width: 280px;
    margin-bottom: 10px;
}
.buttons {
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Container */
.sl_container {
    width: 100%;          /* ✅ full width */
    max-width: 400px;     /* ✅ never overflow */
    padding: 20px;
    box-shadow: 5px 10px 18px #888888;
    background-color: #ffffff;
    border-radius: 6px;
}

/* Login Page Styles */
.login, .signup {
    min-height: 100vh; /* ✅ instead of height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* ✅ space for small devices */
}

input {
    width: 100%;
    padding: 10px 15px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #1751ff;
    border-radius: 2px;
    outline: navy;
}

.page_heading {
    margin-bottom: 18px;
    font-size: 24px;
    color: #333;
}

.login-link {
    margin-top: 10px;
    font-size: 14px;
}

.sl_button {
    margin-top: 10px;
}

.forgot_password_link {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 0.4px;
}

.error {
    margin-top: 10px;
    color: var(--third-color);
    font-size: 14px;
}

.login_image {
    width: 300px;
    margin-bottom: 15px;
}
.signup_image {
    width: 200px;
    margin-bottom: 10px;
}
/* Popup Styling */
/* Popup Overlay */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px); /* Subtle blur effect */
}

/* Popup Box */
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 25px;
    border-radius: 4px;
    width: 350px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.popup-content .close_button {
    position: absolute;
    top: 19px;
    right: 24px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-content .close_button:hover {
    background-color: #c9302c;
}

/* Form Fields */
.popup input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
    transition: border 0.3s ease-in-out;
}

.popup input:focus {
    border: 1px solid #004dba;
    outline: none;
}

/* Buttons */
.popup_button {
    margin-top: 15px;
    padding: 12px;
    background-color: #004dba;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease;
    width: 100%;
}

.popup_button:hover {
    background-color: #003b8e;
}

/* Resend OTP Button */
#resendOtpButton {
    display: none;
    margin-top: 10px;
    padding: 10px;
    font-size: 14px;
    background-color: #ff7b00;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    width: 100%;
}

#otpTimerOtpField {
    font-size: 14px;
    color: red;
    margin-top: 10px;
}

#resendOtpButton:hover {
    background-color: #d86900;
}

/* OTP Timer */
#otpTimer {
    font-size: 14px;
    color: #e07000;
    margin-top: 5px;
    display: block; /* Ensures it's visible */
}

/* Forgot Password Label */
.label_forgot_password {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .popup-content {
        width: 90%;
        padding: 20px;
    }

body {
        background: transparent;
    }

    .sl_container {
        box-shadow: none;
        padding: 40px;
    }

    .popup input {
        font-size: 13px;
        padding: 10px;
    }

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

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
