/* ===================================================================
   AUTHENTICATION SYSTEM - STYLING
   Login/Register modals and authentication controls
   =================================================================== */

/* ===================================================================
   AUTHENTICATION CONTROLS (Header buttons)
   =================================================================== */
.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    background-color: rgba(135, 170, 255, 0.1);
    border: 1px solid rgba(135, 170, 255, 0.3);
    color: #87aaff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-btn:hover {
    background-color: rgba(135, 170, 255, 0.2);
    border-color: rgba(135, 170, 255, 0.5);
    transform: translateY(-1px);
}

.login-btn:hover {
    background-color: rgba(135, 170, 255, 0.15);
}

.logout-btn {
    background-color: rgba(255, 130, 130, 0.1);
    border-color: rgba(255, 130, 130, 0.3);
    color: #ff8282;
}

.logout-btn:hover {
    background-color: rgba(255, 130, 130, 0.2);
    border-color: rgba(255, 130, 130, 0.5);
}

.user-welcome {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    font-family: "Segoe UI", Arial, sans-serif;
}

.register-btn {
    background-color: rgba(255, 140, 105, 0.1);
    border: 1px solid rgba(255, 140, 105, 0.3);
    color: #ff8c69;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
}

.register-btn:hover {
    background-color: rgba(255, 140, 105, 0.2);
    border-color: rgba(255, 140, 105, 0.5);
    transform: translateY(-1px);
}

/* Dashboard button styling */
#dashboardBtn {
    background-color: rgba(64, 224, 160, 0.1);
    border-color: rgba(64, 224, 160, 0.3);
    color: #40e0a0;
}

#dashboardBtn:hover {
    background-color: rgba(64, 224, 160, 0.2);
    border-color: rgba(64, 224, 160, 0.5);
}

/* User Dashboard button styling */
#userDashboardBtn {
    background-color: rgba(95, 202, 255, 0.1);
    border-color: rgba(95, 202, 255, 0.3);
    color: #5FCAFF;
}

#userDashboardBtn:hover {
    background-color: rgba(95, 202, 255, 0.2);
    border-color: rgba(95, 202, 255, 0.5);
}

/* ===================================================================
   LOGIN MODAL STYLING
   =================================================================== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #111213;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
    min-width: 350px;
    max-width: 90vw;
}

.login-modal h2 {
    color: #87aaff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: "Segoe UI", Arial, sans-serif;
    transition: all 0.3s ease;
}

.login-form-group input:focus {
    outline: none;
    border-color: #87aaff;
    background-color: rgba(255, 255, 255, 0.08);
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #87aaff;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #7599e8;
    transform: translateY(-1px);
}

.login-submit-btn:disabled {
    background-color: rgba(135, 170, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

.login-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-close:hover {
    color: #ffffff;
}

.login-error {
    background-color: rgba(255, 130, 130, 0.1);
    border: 1px solid rgba(255, 130, 130, 0.3);
    color: #ff8282;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-success {
    background-color: rgba(135, 230, 135, 0.1);
    border: 1px solid rgba(135, 230, 135, 0.3);
    color: #87e687;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===================================================================
   REGISTRATION MODAL STYLING
   =================================================================== */
.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    font-family: "Segoe UI", Arial, sans-serif;
}

.register-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #111213;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
    min-width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.register-modal h2 {
    color: #ff8c69;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    font-family: "Segoe UI", Arial, sans-serif;
}

.register-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.register-form-group {
    margin-bottom: 20px;
    flex: 1;
}

.register-form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.register-form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: "Segoe UI", Arial, sans-serif;
    transition: all 0.3s ease;
}

.register-form-group input:focus {
    outline: none;
    border-color: #ff8c69;
    background-color: rgba(255, 255, 255, 0.08);
}

.register-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #ff8c69;
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
    margin-top: 10px;
}

.register-submit-btn:hover {
    background-color: #e8785a;
    transform: translateY(-1px);
}

.register-submit-btn:disabled {
    background-color: rgba(255, 140, 105, 0.3);
    cursor: not-allowed;
    transform: none;
}

.register-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: "Segoe UI", Arial, sans-serif;
}

.register-close:hover {
    color: #ffffff;
}

.register-error {
    background-color: rgba(255, 130, 130, 0.1);
    border: 1px solid rgba(255, 130, 130, 0.3);
    color: #ff8282;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

.register-success {
    background-color: rgba(135, 230, 135, 0.1);
    border: 1px solid rgba(135, 230, 135, 0.3);
    color: #87e687;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===================================================================
   RESPONSIVE ADJUSTMENTS
   =================================================================== */

/* Mobile adjustments */
@media (max-width: 767px) {
    .auth-btn,
    .register-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .user-welcome {
        font-size: 10px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .login-modal-content,
    .register-modal-content {
        padding: 30px 25px;
        min-width: 280px;
    }

    .register-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-btn,
    .register-btn {
        padding: 4px 8px;
        font-size: 9px;
    }
}