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

/* User Profile */
.user-profile .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.user-profile .nav-link:hover {
    background: #f8f9fa;
}

.user-profile .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.user-profile .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-profile .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.user-profile .dropdown-item:hover {
    background-color: #f8f9fa;
}

.user-profile img {
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Auth Modals */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 1.5rem;
    border: none;
}

.modal-header .modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header .btn-close {
    color: white;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 25px;
}

/* Auth Tabs */
.nav-tabs {
    border: none;
    margin-bottom: 2rem;
    gap: 10px;
    padding: 0 10px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover::before {
    width: 80%;
}

.nav-tabs .nav-link.active {
    color: #6a11cb;
    background: rgba(106, 17, 203, 0.1);
}

.nav-tabs .nav-link.active::before {
    width: 80%;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.input-group {
    margin-bottom: 5px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-group-text {
    background: #f8f9fa;
    border: none;
    color: #6a11cb;
    padding: 12px 15px;
}

.form-control {
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    background: #f8f9fa;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

/* Social Login */
.social-login {
    margin-top: 2rem;
}

.social-login p {
    position: relative;
    text-align: center;
    color: #666;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-login .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 160px;
}

.social-login .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength.weak::before {
    width: 33.33%;
    background: #ff4444;
}

.password-strength.medium::before {
    width: 66.66%;
    background: #ffbb33;
}

.password-strength.strong::before {
    width: 100%;
    background: #00C851;
}

/* Form Check */
.form-check {
    margin: 1rem 0;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #6a11cb;
    border-color: #6a11cb;
}

.form-check-label {
    color: #666;
    cursor: pointer;
}

.form-check-label a {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Forgot Password Link */
.modal-body a:not(.btn) {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-body a:not(.btn):hover {
    color: #2575fc;
    text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    animation: fadeIn 0.3s ease-out;
}

/* Loading State */
.btn .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons button {
        width: 100%;
        margin: 5px 0;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .social-login .btn {
        width: 140px;
        padding: 10px 15px;
    }
}

/* Token Warning Styles */
.token-warning-animate {
    border: 2px solid #ffc107;
    background: linear-gradient(45deg, #fff9e6, #fff5cc);
    padding: 15px;
    position: relative;
    overflow: hidden;
    animation: warningPulse 2s infinite;
    margin-bottom: 20px;
    border-radius: 10px;
}

.warning-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.warning-icon-pulse {
    font-size: 24px;
    color: #ff9800;
    animation: iconPulse 1s infinite;
}

.warning-content {
    text-align: center;
}

.warning-title {
    display: block;
    font-size: 1.2em;
    color: #e65100;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.warning-text {
    color: #666;
    font-size: 1.1em;
    line-height: 1.4;
}

.token-warning-animate .alert-link {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.token-warning-animate .alert-link:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(106, 17, 203, 0.2);
}

@keyframes warningPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Shimmering effect for auth buttons */
.auth-buttons .btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.auth-buttons .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.auth-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

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

/* Login Modal Styles */
#loginModal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#loginModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 1rem;
}

#loginModal .modal-body {
    padding: 1rem 1.5rem;
}

#loginModal .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem 1.5rem;
}

#loginModal .btn[data-login="google"] {
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

#loginModal .btn[data-login="google"]:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

#loginModal .form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

#loginModal .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    border-color: #4f46e5;
}

#loginModal .btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

#loginModal .btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

#loginModal .text-primary {
    color: #4f46e5 !important;
}

#loginModal .text-primary:hover {
    color: #4338ca !important;
}

/* User Avatar Styles */
.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark mode styles for avatar */
[data-bs-theme="dark"] .user-avatar-small {
    background: #2d2d2d;
    border-color: #2d2d2d;
} 