/* ========== MODAL OVERLAY ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-custom {
    background: linear-gradient(135deg, rgba(26, 15, 8, 0.95), rgba(10, 8, 8, 0.98));
    border-radius: 32px;
    padding: 50px 45px;
    max-width: 480px;
    width: 100%;
    border: 2px solid rgba(200, 155, 60, 0.3);
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(200, 155, 60, 0.1),
        inset 0 1px 0 rgba(200, 155, 60, 0.2);
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content-custom {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(200, 155, 60, 0.1);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(200, 155, 60, 0.25);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(200, 155, 60, 0.4);
}

.modal-header-custom {
    text-align: center;
    margin-bottom: 35px;
}

.modal-header-custom h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--gold-light);
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(200, 155, 60, 0.4);
}

.modal-header-custom p {
    color: rgba(247, 241, 232, 0.7);
    font-size: 0.95rem;
}

/* ========== AUTH FORMS ========== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-custom label {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group-custom input {
    background: rgba(10, 8, 8, 0.7);
    border: 2px solid rgba(200, 155, 60, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    color: rgba(247, 241, 232, 0.95);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-group-custom input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.15), 0 0 20px rgba(200, 155, 60, 0.3);
    background: rgba(10, 8, 8, 0.9);
}

.form-group-custom input::placeholder {
    color: rgba(247, 241, 232, 0.4);
}

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    min-height: 20px;
}

.form-check-custom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-custom input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--gold);
}

.form-check-custom label {
    color: rgba(247, 241, 232, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-auth {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 40px rgba(200, 155, 60, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(200, 155, 60, 0.8), 0 15px 40px rgba(0, 0, 0, 0.5);
}

.btn-auth:active {
    transform: translateY(-1px) scale(1);
}

.auth-links {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    color: rgba(247, 241, 232, 0.7);
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.auth-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 155, 60, 0.6);
}

/* ========== SUCCESS TOAST ========== */
.success-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
    color: white;
    padding: 18px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(76, 175, 80, 0.3);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-toast.show {
    transform: translateX(0);
}

.success-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
