/* ========================================
   LOGIN & REGISTER STYLES
   ======================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(1, 217, 255, 0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.login-box {
    background: var(--dark-alt);
    border: 2px solid rgba(1, 217, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(1, 217, 255, 0.1);
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid rgba(1, 217, 255, 0.2);
    color: var(--white);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary);
    background: rgba(1, 217, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 5px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
}

.input-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--dark);
    border: 2px solid rgba(1, 217, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(1, 217, 255, 0.2);
}

.input-icon input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-box .btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 16px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    color: #51cf66;
}

.alert i {
    font-size: 20px;
}

/* ========================================
   USER MENU IN NAVIGATION
   ======================================== */

.user-menu-nav {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(1, 217, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--white);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.user-menu-btn:hover {
    background: rgba(1, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(1, 217, 255, 0.3);
}

.user-menu-btn i:first-child {
    font-size: 20px;
    color: var(--primary);
}

.user-menu-btn i:last-child {
    font-size: 12px;
    transition: transform 0.3s;
}

.user-menu-nav:hover .user-menu-btn i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--dark-alt);
    border: 2px solid var(--primary);
    border-radius: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(1, 217, 255, 0.2);
    z-index: 1000;
}

.user-menu-nav:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(1, 217, 255, 0.1);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: rgba(1, 217, 255, 0.1);
    color: var(--primary);
}

.user-dropdown a i {
    font-size: 16px;
    color: var(--primary);
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.profile-section {
    background: var(--dark);
}

.profile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-card {
    background: var(--dark-alt);
    border: 2px solid rgba(1, 217, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s;
}

.profile-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(1, 217, 255, 0.2);
}

.profile-card h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 25px;
    }

    .user-menu-btn span {
        display: none;
    }

    .user-dropdown {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 80px 15px 30px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .user-dropdown {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .user-menu-nav:hover .user-dropdown {
        position: relative;
    }
}

.password-strength-bar {
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 4px;
  margin-top: 5px;
}
.password-strength-bar #strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}
