/* Authentication Modal Styles */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.auth-modal h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s;
    font-weight: 500;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-tab.active {
    color: #8B5CF6;
    border-bottom-color: #8B5CF6;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.auth-form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    color: #fff;
    transition: all 0.3s;
}

.auth-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-form-group input:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 137, 249, 0.1);
}

.forgot-password-link,
.back-to-signin-link {
    background: none;
    border: none;
    color: #8B5CF6;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    display: block;
    text-align: left;
    transition: color 0.3s;
}

.forgot-password-link:hover,
.back-to-signin-link:hover {
    color: #0088fe;
    text-decoration: underline;
}

.back-to-signin-link {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.forgot-password-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 137, 249, 0.3);
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #0088fe 0%, #0059b3 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 137, 249, 0.4);
}

.auth-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-error {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
    line-height: 1.4;
}

.auth-error.active {
    display: block;
}

.auth-success {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
    line-height: 1.4;
}

.auth-success.active {
    display: block;
}

.auth-info {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    text-align: center;
}


