/* --- EXISTING CSS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
* { margin: 0; padding: 0; font-family: "Poppins", sans-serif; box-sizing: border-box; }

:root {
  --body-color: #434343;
  --body-color2: #a7a7a7;
  --sidebar-color: #1d1d1d;
  --primary-color: #ffe600;
  --text-color: #ffffff;
}

html, body { height: 100%; margin: 0; padding: 0; }
body { background-color: var(--sidebar-color); }
.main { height: 100%; width: 100%; display: flex; justify-content: start; min-height: 100vh; }
.login-container { width: 30%; height: 100%; background-color: #f1f1f1; align-items: center; justify-content: center; display: flex; border-top-right-radius: 70px; border-bottom-right-radius: 70px; transition: 0.3s ease; }
.login-form { width: 70%; background: white; border-radius: 10px; padding: 20px; box-shadow: 0 20px 40px -10px #00000042; }
.intro { text-align: center; font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.highlight { color: var(--primary-color); font-weight: bold; }
.field { margin: 25px 5px; position: relative; }
.input-wrapper { position: relative; }

input { width: 100%; height: 35px; border-radius: 8px; border: 1px solid #000; outline: none; font-size: 1rem; background: transparent; padding-left: 10px; padding-right: 35px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px #ffe60042; }

label { position: absolute; left: 10px; top: 50%; transform: translateY(-50%) scale(1); transform-origin: left top; background: white; padding: 0 6px; transition: 0.2s ease; pointer-events: none; font-size: 0.9rem; color: #555; }
input:focus + label, input:not(:placeholder-shown) + label { top: -1px; font-size: 0.65rem; color: var(--sidebar-color); }

button { background-color: var(--sidebar-color); color: var(--primary-color); outline: none; width: 100%; padding: 12px; border-radius: 8px; border: none; cursor: pointer; font-size: 1.1rem; margin-top: 8px; font-weight: 600; transition: 0.1s ease; }
button:hover { background-color: var(--primary-color); color: var(--sidebar-color); }

/* --- ICONS & LINKS --- */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 1.2rem;
    user-select: none;
}
.toggle-password:hover { color: var(--primary-color); }

.forgot-wrapper {
    text-align: right;
    margin-top: -15px;
    margin-bottom: 15px;
    margin-right: 5px;
}
.forgot-link {
    color: #555;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--primary-color); }

/* --- MODAL --- */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.modal.hidden { display: none; }

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    color: #aaa;
}
.close-modal:hover { color: black; }

.step-container p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}
.step-container.hidden { display: none; }

/* ===========================
   NEW: RESPONSIVE MEDIA QUERIES
   =========================== */

/* Tablet View */
@media (max-width: 1024px) {
    .login-container {
        width: 45%; /* Expands slightly on medium screens */
    }
    .login-form {
        width: 80%;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .main {
        justify-content: center; /* Center the login box completely */
        align-items: center;
        padding: 20px;
    }
    
    .login-container {
        width: 100%;
        max-width: 450px;
        height: auto;
        border-radius: 20px; /* Turns into a neat floating card */
        padding: 40px 0;
        background-color: #ffffff; /* Make the container match the form */
    }
    
    .login-form {
        width: 85%;
        box-shadow: none; /* Remove double shadow effect */
        padding: 0;
    }
    
    .intro {
        font-size: 26px; /* Slightly smaller text for mobile */
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }
}