.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: rgba(0, 0, 0, 0.233);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.auth-logo {
    width: 140px;
    margin-bottom: 1rem;
}

.auth-box h2 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.auth-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-form .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(255, 255, 255);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.15);
}

.auth-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: 'Rajdhani', sans-serif;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-form input:-webkit-autofill + i {
    color: #000 !important;
}

/* For Firefox and other browsers */
.auth-form input:autofill,
.auth-form input:autofill:hover,
.auth-form input:autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset;
}

.auth-form input:autofill + i {
    color: #000 !important;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.remember-me, .terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.forgot-password:hover {
    color: rgb(228, 223, 223);
    text-decoration: none;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.auth-switch {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.auth-switch a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.auth-switch a:hover {
    color: rgb(228, 223, 223);
    text-decoration: none;
}

.terms a {
    color: rgb(255, 255, 255);
}

.terms a:hover {
    color: rgb(228, 223, 223);
}

.back-home {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-home:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .auth-box {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(87, 87, 87, 0.3);
    backdrop-filter: blur(5px);
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    border-radius: 10px;

    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.close-modal {
    color: #cacaca;
    font-size: 35px !important;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.terms-content {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
}

.terms-content h3 {
    color: #fff;
    margin: 1.5rem 0 1rem;
    font-family: 'Orbitron', sans-serif;
}

.terms-content p {
    margin-bottom: 1rem;
}

.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}