/* Authentication Styles */

/* Auth Buttons in Header */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-signin {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--neon-yellow);
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-signin:hover {
    background: var(--neon-yellow);
    color: #000;
    transform: translateY(-2px);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown .btn-connect {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--dark-card);
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--neon-yellow);
    color: #000;
}

/* Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--dark-card);
    border-radius: 25px;
    max-width: 480px;
    width: 90%;
    padding: 40px;
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--neon-yellow);
    background: rgba(196, 255, 0, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.modal-header p {
    font-size: 15px;
    color: var(--text-gray);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    color: var(--text-white);
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--neon-yellow);
    box-shadow: 0 0 0 3px rgba(196, 255, 0, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--neon-yellow);
}

.checkbox-label a {
    color: var(--neon-yellow);
    text-decoration: none;
}

.forgot-password {
    color: var(--neon-yellow);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-submit {
    background: var(--neon-yellow);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 255, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
    color: var(--text-gray);
    font-size: 13px;
}

/* Social Login Buttons */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn span {
    font-size: 18px;
    font-weight: 700;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-btn.google:hover {
    border-color: #4285f4;
}

.social-btn.facebook:hover {
    border-color: #1877f2;
}

/* Switch Auth Link */
.switch-auth {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 20px;
}

.switch-auth a {
    color: var(--neon-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.switch-auth a:hover {
    opacity: 0.8;
}

/* Success/Error Messages */
.auth-message {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.auth-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 968px) {
    /* User dropdown full width on tablet */
    .user-dropdown .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    /* Modal responsive */
    .modal-content {
        padding: 30px 20px;
        max-width: 95%;
        margin: 20px;
    }

    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-header p {
        font-size: 14px;
    }

    /* Social login stacked */
    .social-login {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Auth buttons stacked */
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn-signin,
    .btn-connect {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Form inputs */
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Form options */
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* User dropdown */
    .user-dropdown {
        width: 100%;
    }
    
    .user-dropdown .btn-connect {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .modal-content {
        padding: 25px 15px;
        max-width: 100%;
        margin: 10px;
        border-radius: 20px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }
    
    /* Smaller buttons */
    .btn-submit {
        padding: 14px;
        font-size: 15px;
    }
    
    .social-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Progress steps smaller */
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 11px;
    }
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--neon-yellow);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 255, 0, 0.8);
}
