/* Importing Google font - Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    background: url("images/bg_denr6.png") center/cover no-repeat;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 0 10px;
}

.navbar {
    display: flex;
    padding: 30px 50px;
    align-items: center;
    max-width: 1200px;

    justify-content: space-between;
}

.navbar .logo {
    gap: 10px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar .logo img {
    max-width: 100%; /* Ensure the image scales */
    width: 650px; /* Auto adjust width */
 
}

.navbar .logo h2 {
    color: #fff;
    font-weight: 600;
    font-size: 1.7rem;
}

/* Ensure login form is always visible */
.form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 100%;
    max-width: 890px;
    background: #fff;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
    display: block; /* Make sure the login form is always visible */
}

/* Ensure .form-box is displayed */
.form-box {
    display: flex !important;
}

/* Fix any hidden login issues */
.form-popup .login {
    display: flex !important;
}

/* Form Box */
.form-popup .form-box {
    display: flex;
    flex-direction: row;
}

/* Login Left Side */
.form-box .form-details {
    width: 100%;
    color: #fff;
    max-width: 570px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: url("images/5.png") center/cover;
}

.form-box .form-content {
    width: 100%;
    padding: 35px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 29px;
}

/* Input Fields */
form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
}

.input-field input {
    height: 100%;
    width: 100%;
    background: none;
    outline: none;
    font-size: 0.95rem;
    padding: 0 15px;
    border: 1px solid #717171;
    border-radius: 3px;
}

.input-field input:focus {
    border: 1px solid #00bcd4;
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #4a4646;
    pointer-events: none;
    transition: 0.2s ease;
}

.input-field input:is(:focus, :valid) {
    padding: 16px 15px 0;
}

.input-field input:is(:focus, :valid) ~ label {
    transform: translateY(-120%);
    color: #00bcd4;
    font-size: 0.75rem;
}

/* Forgot Password Link */
form .forgot-pass-link {
    display: inline-flex;
    margin-top: 13px;
    font-size: 0.95rem;
    color: #00bcd4;
    text-decoration: none;
}

form .forgot-pass-link:hover {
    text-decoration: underline;
}

/* Submit Button */
form button {
    width: 100%;
    color: #fff;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    margin: 25px 0;
    background: #00bcd4;
    transition: 0.2s ease;
}

form button:hover {
    background: #0097a7;
}

/* Bottom Link */
.form-content .bottom-link {
    text-align: center;
}

.form-content .bottom-link2 {
    position: absolute;
    bottom: 15px;
    left: 70;
    font-size: 0.75rem;
  
}

/* Responsive Design */
@media (max-width: 950px) {
    .navbar .logo img {
        display: block;
    }

    .navbar .logo h2 {
        font-size: 1.4rem;
    }

    .form-popup {
        width: 95%;
    }

    .form-box .form-details {
        display: none;
    }

    .form-box .form-content {
        padding: 30px 20px;
    }
}
