@font-face {
    font-family: Poppins-Regular;
    src: url('Poppins-Regular.ttf'); 
}   

@font-face {
    font-family: Poppins-Medium;
    src: url('Poppins-Medium.ttf'); 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== BODY - LIGHT MODE (Default) ===== */
body {
    font-family: Poppins-Regular;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e5ec 0%, #c9d6df 50%, #a4b5c4 100%);
    background-attachment: fixed;
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
    font-family: Poppins-Medium;
    background-color: #fff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 380px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-container .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.login-container h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ===== INPUT FIELDS ===== */
.login-container input[type="text"],
.login-container input[type="password"] {
    font-family: Poppins-Regular;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}

/* ===== SUBMIT BUTTON ===== */
.login-container input[type="submit"] {
    font-family: Poppins-Medium;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.login-container input[type="submit"]:hover {
    background-color: #0056b3;
}

/* ===== CUSTOM CHECKBOX ===== */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    user-select: none;
    gap: 8px;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    min-width: 18px;
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-container:hover .checkmark {
    border-color: #007bff;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* ===== OR DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    padding: 0 12px;
    color: #999;
    font-size: 11px;
    font-family: Poppins-Medium;
    text-transform: uppercase;
}

/* ===== OAUTH BUTTONS ===== */
.login-container .oauth-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.login-container .oauth-buttons form {
    flex: 1;
    min-width: 0;
}

.login-container .oauth-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: Poppins-Medium;
    transition: background-color 0.3s ease, transform 0.1s ease;
    white-space: nowrap;
}

.login-container .oauth-buttons button:active {
    transform: scale(0.98);
}

.login-container .oauth-buttons button img {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.login-container .oauth-buttons button.discord {
    background-color: #5865F2;
    color: #fff;
}

.login-container .oauth-buttons button.roblox {
    background-color: #393b3d;
    color: #fff;
}

.login-container .oauth-buttons button.discord:hover {
    background-color: #4752c4;
}

.login-container .oauth-buttons button.roblox:hover {
    background-color: #2a2c2d;
}

/* ===== FOOTER ===== */
.login-container p {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 10px;
    color: #888;
}

.login-container p a {
    text-decoration: none;
    color: #57a8ff;
    transition: color 0.2s ease;
}

.login-container p a:hover {
    color: #007bff;
}

/* ===================================
   DARK MODE (Auto-detect from system)
   =================================== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 50%, #3d2525 100%);
    }

    .login-container {
        background-color: #2d2d2d;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .login-container h2 {
        color: #fff;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        background-color: #3d3d3d;
        border-color: #4d4d4d;
        color: #fff;
    }

    .login-container input[type="text"]::placeholder,
    .login-container input[type="password"]::placeholder {
        color: #999;
    }

    .login-container input[type="text"]:focus,
    .login-container input[type="password"]:focus {
        border-color: #57a8ff;
    }

    .checkbox-container {
        color: #ccc;
    }

    .checkmark {
        background-color: #3d3d3d;
        border-color: #555;
    }

    .divider::before,
    .divider::after {
        background-color: #444;
    }

    .divider span {
        color: #777;
    }

    .login-container p {
        color: #666;
    }
}

/* ===================================
   RESPONSIVE - TABLETS & SMALL SCREENS
   =================================== */
@media (max-width: 480px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-container {
        padding: 30px 25px;
        border-radius: 10px;
    }

    .login-container .logo {
        width: 80px;
        height: 80px;
    }

    .login-container h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        padding: 11px 12px;
        font-size: 14px;
    }

    .login-container input[type="submit"] {
        padding: 11px;
        font-size: 14px;
    }

    .checkbox-container {
        font-size: 12px;
    }

    .login-container .oauth-buttons {
        gap: 8px;
    }

    .login-container .oauth-buttons button {
        padding: 10px 8px;
        font-size: 11px;
    }

    .login-container .oauth-buttons button img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }

    .login-container p {
        font-size: 9px;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 350px) {
    .login-container {
        padding: 25px 20px;
    }

    .login-container .oauth-buttons button {
        padding: 9px 6px;
        font-size: 10px;
    }

    .login-container .oauth-buttons button img {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
}