/* Auth Modal Styling */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-overflow-scrolling: touch;
}

.auth-modal-content {
    background-color: #fff;
    margin: 30px auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.auth-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.auth-close:hover { color: #000; }

.avatar-preview-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px dashed #007bff;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    cursor: pointer;
}

.avatar-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.avatar-preview-container span {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    padding: 5px;
}

.password-field-group {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #6c757d;
    z-index: 5;
}
