@font-face {
    font-family: 'Reospec';
    src: url('../ASSETS/font/Reospec.otp') format('opentype');
}

:root {
    --logo-size: 200px;
    /* Adjust size */
    --logo-bottom: -50px;
    /* Adjust vertical position */
    --logo-right: -10px;
    /* Adjust horizontal position */
}

/* Floating Image */
.floating-img {
    position: fixed;
    top: 5px;
    left: 10px;
    width: 40px;
    height: auto;
    z-index: 999;
    margin-top: 2rem;
    margin-left: .5rem;
}

/* Navbar */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: background 0.3s ease;
    z-index: 1000;
    box-sizing: border-box;
    background: transparent;
    /* No background initially */
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 60px;
}

/* Logo */
/* Logo */
.logo-container {
    position: absolute;
    left: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Adjust logo size and color */
.logo-img {
    margin-bottom: 10px;
    width: 60px;
    /* Make it smaller */
    height: auto;
    filter: invert(1);
    /* Converts black to white */
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 20px;
    gap: 25px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-container {
    margin-top: -1.5rem;
}

/* Login Button */
.login-btn {
    background-color: gold;
    color: black;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.login-btn:hover {
    background-color: darkgoldenrod;
}

/* ========================= */
/* Responsive: Burger Menu   */
/* ========================= */

/* Burger Menu (Hidden on Desktop) */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.burger-menu .bar {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}




/* Footer */
.footer {
    background-color: #f4b000;
    color: #000;
    text-align: center;
    padding: 20px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-top: 2px solid #000;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 20px;
    font-size: 25px;
    /* Adjust size as needed */
    font-family: 'Reospec', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    filter: invert(1);
}

.copyright {
    font-weight: 500;
    font-size: 12px;
    color: #fff;
    position: absolute;
    left: 20px;
}

.team {
    font-weight: 500;
    font-size: 12px;
    color: #fff;
    position: absolute;
    right: 20px;
}

.team-btn {
    position: absolute;
    right: 20px;
    background-color: #b98e03;
    text-decoration: none;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1;
}

.team-btn:hover {
    background-color: #ffffff;
    color: #b98e03
}

/* Back to Top Button Styling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top:hover {
    background-color: #555;
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* Form Popup */
.form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: #111827;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -70%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.show-popup .form-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

/* Making signup form scrollable if content exceeds height */
.form-scrollable {
    max-height: calc(90vh - 150px);
    overflow-y: auto;
    padding-right: 8px;
}

.form-scrollable::-webkit-scrollbar {
    width: 6px;
}

.form-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.form-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.form-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Close Button */
.form-popup .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

.form-popup .close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Blur Background Overlay */
.blur-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    height: 100%;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.65);
    transition: opacity 0.3s ease;
}

.show-popup .blur-bg-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* General Layout */
.form-box {
    display: flex;
    flex-direction: column;
    color: #f3f4f6;
}

/* Form Content */
.form-content {
    margin-top: 10px;
}

/* Heading Styling */
.welcome-text {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ff9500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtext {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Input Fields */
.input-field {
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

.input-field label {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

/* Input Styling */
.input-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #374151;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-field input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.input-field input::placeholder {
    color: #6b7280;
}

/* Row Layout for Two-Column Inputs */
.input-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.input-row .input-field {
    flex: 1;
    margin-bottom: 0;
}

/* Make input rows responsive */
@media (max-width: 480px) {
    .input-row {
        flex-direction: column;
        gap: 8px;
    }

    .welcome-text {
        font-size: 1.8rem;
    }

    .form-popup {
        padding: 24px;
    }
}

/* Password Field with Eye Icon */
.password-container {
    display: flex;
    align-items: center;
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    padding: 8px;
}

.toggle-password:hover {
    color: #ffd700;
}

/* Remember/Forgot Row */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me input[type="checkbox"] {
    accent-color: #ffd700;
    width: 16px;
    height: 16px;
}

.remember-me label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.forgot-link {
    color: #ffd700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Form Button */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #ffd700, #ff9500);
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

button[type="submit"]:disabled {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #374151;
}

.divider span {
    padding: 0 12px;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #374151;
    background: rgba(255, 255, 255, 0.04);
    color: #f3f4f6;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 1.1rem;
}

.social-btn.google i {
    color: #ea4335;
}

.social-btn.facebook i {
    color: #1877f2;
}

/* Bottom Link */
.bottom-link {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 8px;
}

.bottom-link a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.bottom-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Policy Text */
.policy-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.policy-text input[type="checkbox"] {
    accent-color: #ffd700;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.policy-text a {
    color: #ffd700;
    text-decoration: none;
}

.policy-text a:hover {
    text-decoration: underline;
}

/* Password Error */
#password-error {
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Animations for form transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-box {
    animation: fadeIn 0.5s ease forwards;
}

/* Policy Checkbox */
.signup .policy-text {
    display: flex;
    align-items: center;
    margin-top: 14px;
    font-size: 0.9rem;
}

.signup .policy-text input {
    width: 14px;
    height: 14px;
    margin-right: 7px;
}

.floating_logo {
    position: fixed;
    bottom: var(--logo-bottom);
    right: var(--logo-right);
    width: var(--logo-size);
    height: auto;
    z-index: 1000;
    /* Ensures it stays on top */
}

.footer-right {
    display: flex;
    flex-direction: row-reverse;
    /* Reverse the order */
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 150px;
}

.mingshuin-logo {
    height: 35px;
    width: 35px;
    margin: 0;
    /* Remove margin */
    border-radius: 50%;
    /* Makes the image circular */
    object-fit: cover;
    /* Ensures the image covers the circular area */
}

.credit-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
    /* Add margin to separate from logo */
}