/* Authentication System Custom Styles - La Gilda */

/* Alert boxes */
.alert-error {
    background: #140e38;
    border: 2px solid #ff4444;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.alert-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-error li {
    color: #ff4444;
    font-size: 15px;
    margin-bottom: 8px;
}

.alert-error li:last-child {
    margin-bottom: 0;
}

.alert-success {
    background: #140e38;
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 10px;
    color: #4caf50;
    margin-bottom: 30px;
}

.alert-info {
    background: transparent;
    border: 1px solid #ffb83c;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* User dropdown menu */
.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #1a1440 !important;
    transition: background 0.3s ease;
}

/* Profile info styling */
.profile-info p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 24px;
}

.profile-info strong {
    display: inline-block;
    min-width: 150px;
}

.profile-bio {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #281e4d;
}

.profile-favorites {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #281e4d;
}

.profile-favorites li a:hover {
    color: #b154f0 !important;
    transition: color 0.3s ease;
}

/* Form labels */
.form_input label,
.form_textarea label {
    color: #b154f0;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

/* File input styling */
.form_input input[type="file"] {
    color: #fff;
    padding: 15px;
    cursor: pointer;
    border: 2px solid #281e4d;
    border-radius: 10px;
    background: inherit;
    width: 100%;
}

.form_input input[type="file"]::-webkit-file-upload-button {
    background: #b154f0;
    color: #fff;
    border: 0;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    font-family: inherit;
}

.form_input input[type="file"]::-webkit-file-upload-button:hover {
    background: #9a3fd9;
}

.form_input input[type="file"]::-moz-file-upload-button {
    background: #b154f0;
    color: #fff;
    border: 0;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    font-family: inherit;
}

.form_input input[type="file"]::-moz-file-upload-button:hover {
    background: #9a3fd9;
}

/* Readonly input styling */
.form_input input[readonly] {
    background-color: #1a1440 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Avatar fallback with initial letter */
.avatar-fallback {
    width: 370px;
    height: 368px;
    background: #281e4d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-fallback span {
    font-size: 120px;
    color: #b154f0;
    font-weight: bold;
}

/* Header user menu button adjustments */
.user-menu .btn.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.user-menu .btn.btn-link img {
    margin-left: 8px !important;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
    .auth-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .auth-buttons .btn.btn-link {
        width: 100% !important;
        font-size: 14px !important;
    }

    .profile-info strong {
        display: block;
        min-width: auto;
        margin-bottom: 5px;
    }

    .user-dropdown {
        right: -20px !important;
    }

    .form_input_btn {
        flex-direction: column !important;
    }

    .form_input_btn .btn.btn-link {
        width: 100% !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .auth-buttons .btn.btn-link {
        width: 120px !important;
        font-size: 14px !important;
    }
}

/* Smooth transitions */
.user-dropdown,
.alert-error,
.alert-success,
.alert-info {
    animation: fadeIn 0.3s ease-in;
}

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