/* General Styles */
:root{
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --muted: #7f8c8d;
    --text-dark: #24303b;
}

body {
    margin: 0;
    padding: 0;
    background-color: rgb(244, 246, 250);
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.main_container {
    display: flex;
    gap: 100px;
    /* Reduced gap */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    /* Added max width */
    width: 100%;
    box-sizing: border-box;
}

.logo_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgb(14, 40, 78);
    font-size: 35px;
    justify-content: center;
    align-items: center;
    flex: 1 1 400px;
    /* flexible width with min */
    max-width: 450px;
}

.logo_container img {
    max-width: 100%;
    height: auto;
}

.mainheading {
    margin-top: 0px;
}

#typewriter {
    font-family: 'Courier New', monospace;
    font-size: 50px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #34495e;
    /* Cursor effect */
    width: fit-content;
}

/* Login Container */
.login-container {
    color: var(--text-dark);
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    padding: 28px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(36,48,59,0.08);
    border: 1px solid rgba(36,48,59,0.04);
    flex: 1 1 350px;
}

/* Form Inputs */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: white;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--text-dark);
    box-sizing: border-box;
}

.input-group input:focus {
    border: 1px solid rgba(102,126,234,0.6);
    box-shadow: 0 6px 18px rgba(102,126,234,0.06);
    outline: none;
}

/* Options */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.options a {
    color: #A78BFA;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    margin-bottom: 10px;
    font-weight: 700;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(102,126,234,0.14);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Loader Styles */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.6s linear infinite;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader p {
    font-size: 14px;
    margin-top: 5px;
    color: var(--muted);
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #e74c3c;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

@media screen and (max-width: 768px) {
    .logo_container img {
        display: none !important;
    }

    .main_container {
        overflow-y: scroll;
        scrollbar-width: none;
    }

    .main_container::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }
}