/* Register and Login Modal Styles */
.auth-modal .modal-content {
    background: linear-gradient(145deg, #1f1b2c 0%, #282534 100%);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.auth-modal .modal-header {
    background: linear-gradient(to right, rgba(108, 99, 255, 0.1), transparent);
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    border-radius: 20px 20px 0 0;
    padding: 0.875rem 1.25rem;
}

.auth-modal .modal-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.auth-modal .modal-body {
    padding: 1.25rem;
}

/* Form Styles */
.auth-modal .form-group {
    margin-bottom: 0.875rem;
    position: relative;
}

.auth-modal .form-label {
    color: #c8bdcb;
    font-weight: 500;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    position: relative;
}

.auth-modal .input-container {
    position: relative;
    margin-bottom: 0.5rem;
    width: 100%;
}

.auth-modal .form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c63ff;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.auth-modal .password-input-container {
    position: relative;
    margin-bottom: 0.5rem;
    width: 100%;
}

.auth-modal .password-input-container i.bi-lock {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c63ff;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.auth-modal .password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    display: inline-block;
    padding: 0;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
}

.auth-modal .password-toggle-icon:hover {
    color: #ffffff;
}

.auth-modal .form-control:focus ~ .password-toggle-icon {
    color: #6c63ff;
}

.auth-modal .forgot-password-link {
    color: #6c63ff;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.auth-modal .forgot-password-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-modal .d-flex.justify-content-between {
    align-items: center;
    margin-bottom: 0.5rem;
}

.auth-modal .form-control {
    background-color: rgba(40, 37, 52, 0.8);
    border: 2px solid rgba(108, 99, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    height: 2.75rem;
    padding: 0 1rem 0 2.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

/* Password strength meter */
.auth-modal .password-strength-meter {
    margin-top: 0.75rem;
    background-color: rgba(31, 27, 44, 0.7);
    padding: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(108, 99, 255, 0.15);
}

.auth-modal .strength-indicator {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    gap: 14px; /* Small gap to prevent overlapping */
    margin-bottom: 8px;
    height: 20px; /* Fixed height to ensure consistent alignment */
}

.auth-modal .strength-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6c63ff;
    font-size: 1rem;
    transition: color 0.3s ease;
    line-height: 1;
    position: relative;
    top: -1px; /* Move the icon up slightly to align with progress bar */
    margin: 0;
    padding: 0;
}

/* Icon colors to match progress bar colors exactly */
.auth-modal .strength-icon.weak {
    color: #dc3545; /* Red - matches the weak progress bar */
}

.auth-modal .strength-icon.medium {
    color: #ffc107; /* Yellow - matches the medium progress bar */
}

.auth-modal .strength-icon.strong {
    color: #28a745; /* Green - matches the strong progress bar */
}

.auth-modal .password-strength-meter .progress {
    background-color: rgba(40, 37, 52, 0.7);
    height: 6px; /* Slightly reduced height for better alignment */
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    margin-top: 0; /* Ensure no margin to keep alignment */
    margin-bottom: 0; /* Ensure no margin to keep alignment */
    align-self: center; /* Center vertically within the flex container */
    position: relative;
    top: 0; /* Ensure it's perfectly centered */
}

.auth-modal .password-strength-meter .progress-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.auth-modal .password-strength-meter .progress-bar.weak {
    background-color: #dc3545;
    background-image: linear-gradient(45deg, #dc3545, #ff5a67);
}

.auth-modal .password-strength-meter .progress-bar.medium {
    background-color: #ffc107;
    background-image: linear-gradient(45deg, #ffc107, #ffdb4d);
}

.auth-modal .password-strength-meter .progress-bar.strong {
    background-color: #28a745;
    background-image: linear-gradient(45deg, #28a745, #48d368);
}

.auth-modal .strength-text {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: block;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(31, 27, 44, 0.7); /* Default background */
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #6c63ff;
    transition: background-color 0.3s ease, border-left-color 0.3s ease;
}

/* Strength text background colors with 30% opacity */
.auth-modal .strength-text.weak-bg {
    background-color: rgba(220, 53, 69, 0.2); /* #dc3545 with 20% opacity */
    border-left-color: #dc3545;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7); /* Enhanced text shadow for better readability */
}

.auth-modal .strength-text.medium-bg {
    background-color: rgba(255, 193, 7, 0.2); /* #ffc107 with 20% opacity */
    border-left-color: #ffc107;
    color: #ffffff; /* Ensure text is visible on yellow background */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7); /* Enhanced text shadow for better readability */
}

.auth-modal .strength-text.strong-bg {
    background-color: rgba(40, 167, 69, 0.2); /* #28a745 with 30% opacity */
    border-left-color: #28a745;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7); /* Enhanced text shadow for better readability */
}

.auth-modal .form-control:focus {
    background-color: rgba(40, 37, 52, 0.95);
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    outline: none;
}

.auth-modal .form-control::placeholder {
    color: rgba(200, 189, 203, 0.5);
    font-size: 0.875rem;
}

/* Profile Picture Section */
.auth-modal .profile-pic-section {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-modal .profile-pic-wrapper {
    display: inline-block;
    position: relative;
    margin: 0.375rem auto;
}

.auth-modal .profile-pic-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(40, 37, 52, 0.8);
    border: 3px solid rgba(108, 99, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-modal .profile-pic-container:hover {
    border-color: #6c63ff;
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.2);
}

.auth-modal .default-profile-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(108, 99, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal .default-profile-icon i {
    font-size: 2.75rem;
}

.auth-modal .profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal .profile-pic[src] {
    opacity: 1;
}

.auth-modal .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(40, 37, 52, 0.9);
    color: #ffffff;
    padding: 0.3rem;
    font-size: 0.7rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.auth-modal .profile-pic-container:hover .overlay-text {
    transform: translateY(0);
}

/* Button Styles */
.auth-modal .btn-primary {
    background: linear-gradient(45deg, #6c63ff, #5a52d5);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    height: 2.75rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.auth-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
    background: linear-gradient(45deg, #5a52d5, #6c63ff);
}

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

/* Social Login Section */
.auth-modal .social-login-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal .social-login-divider::before,
.auth-modal .social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(108, 99, 255, 0.2);
    margin: 0 15px;
}

.auth-modal .social-login-divider span {
    color: #c8bdcb;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    background: #1f1b2c;
    white-space: nowrap;
}

.auth-modal .social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.auth-modal .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    height: 2.75rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(40, 37, 52, 0.8);
    border: 2px solid rgba(108, 99, 255, 0.1);
    color: #ffffff;
}

.auth-modal .btn-social:hover {
    background: rgba(40, 37, 52, 0.95);
    border-color: #6c63ff;
    transform: translateY(-1px);
}

.auth-modal .btn-social i {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Animation */
.auth-modal.modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-30px);
    transition: all 0.3s ease;
    opacity: 0;
}

.auth-modal.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.auth-modal .btn-close {
    background: none;
    border: none;
    color: #ffffff;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.auth-modal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Toggle Link */
.auth-modal .toggle-auth-link {
    color: #6c63ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-modal .toggle-auth-link:hover {
    color: #5a52d5;
    text-decoration: underline;
}

.auth-modal .text-center {
    margin-top: 0.875rem !important;
}
