.login-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background-color: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 2.2rem;
    margin: 0;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 10px;
}

.auth-subtitle-2 {
    color: rgba(255, 255, 255, 0.6);
    font-size: .85rem;
    margin-bottom: 10px;
    text-align: left;
    margin: 25px 0px;
    line-height: 1.8;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.help-text {
    text-align: center;
    font-size: .9rem;
    margin-bottom: 10px;
    padding: 5px 0px;
}

.help-text-password {
    text-align: left;
    font-size: .9rem;
    margin-bottom: 10px;
    padding: 5px 0px;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

.auth-links {
    margin-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.auth-links a {
    color: rgba(160, 74, 226, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #9e33e6;
    text-decoration: underline;
}

.create-account-section {
    margin-top: 50px;
}

/* Messages styling */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.message.error {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #ff0000;
    color: #ffffff;
}

.message.success {
    background-color: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
    color: #ffffff;
}

.error-message {
    color: #ff6666;
    margin-top: 5px;
    font-size: 0.85rem;
    padding: 5px 0;
}

/* New two-panel layout styles */
.panels-container {
    display: flex;
    max-width: 900px;
    margin: 80px auto;
}

.panel {
    flex: 1;
    padding: 40px;
    background-color: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.login-panel {
    margin-right: 20px;
}

.signup-panel {
    display: flex;
    flex-direction: column;
}

.signup-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel .auth-divider span {
    background-color: #0a0a0a;
}

/* Custom auth modal styling */
.custom-auth-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-auth-container {
    background-color: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
}

.custom-auth-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.custom-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-auth-field label {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.custom-auth-field input {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
}

.custom-auth-field input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.custom-auth-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.custom-auth-buttons button {
    flex: 1;
}

.custom-auth-buttons .cancel-btn {
    margin-right: 10px;
    background: linear-gradient(45deg, #505050, #303030);
}

.custom-auth-buttons .submit-btn {
    margin-left: 10px;
}

/* Google Accounts */
.social-login {
    margin-top: 15px;
    text-align: center;
}

.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #000000;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px auto;
    width: 100%;
    max-width: 250px;
    text-decoration: none;
    transition: all 0.3s ease;
}


.google-login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.google-login-button img {
    height: 20px;
    margin-right: 10px;
}

@media screen and (min-width: 1920px) and (max-width: 1921px) {
    /* Login Page */
    .panels-container {
        max-width: 1500px;
        height: 100%;
        gap: 5rem;
    }

    .auth-title {
        font-size: 4.5rem;
    }

    .auth-subtitle {
        margin-top: 25px;
        font-size:  1.8rem;
    }

    .form-group label {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .form-group input {
        font-size: 1.5rem;
    }

    .auth-button {
        margin-top: 25px;
        font-size: 2rem;
    }

    .google-login-button {
        font-size: 2rem;
        max-width: 95%;
    }

    .auth-links {
        font-size: 1.5rem;
    }

    .auth-subtitle-2 {
        margin-top: 50px;
        margin-bottom: -30px;
        font-size: 1.5rem;
    }

    /* Sign Up Page */
    .auth-container {
        max-width: 1000px;
        height: 100%;
    }

    .auth-form label {
        font-size: 2rem;
    }

    .auth-form input {
        font-size: 1.5rem;
    }

    .help-text, .help-text-password {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {
    .panels-container {
        flex-direction: column;
        max-width: 450px;
    }
    
    .login-panel {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .panels-container {
        max-width: 90% !important;
    }

    .auth-title {
        white-space: nowrap;
    }

    .auth-links p {
        font-size: .96rem;
    }

    .auth-button.create-account {
        margin-top: -100px;
    }

    .google-login-button {
        max-width: 88%;
    }
}