/* =========================
   LOGIN CASA MILANO
   ========================= */

.login-section {
  padding: 4rem 0 5rem;
  background:
    linear-gradient(rgba(255, 252, 248, 0.92), rgba(255, 252, 248, 0.92)),
    #fffaf5;
}

.login-card {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.login-card h1 {
  font-family: 'Playfair Display', serif;
  color: #2f241d;
}

.login-form-group {
  margin-bottom: 1.4rem;
}

.login-form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #7a685c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-form-group .form-control {
  border-radius: 0;
  border: none;
  border-bottom: 2px solid #d6c5b5;
  padding: 12px 4px;
  background: transparent;
  color: #3f3128;
}

.login-form-group .form-control:focus {
  box-shadow: none;
  border-bottom-color: #b88746;
}

.btn-login {
  background: #b88746;
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.btn-login:hover {
  background: #a87635;
  color: #fff;
  transform: translateY(-1px);
}

.login-field-error {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #c62828;
}

.login-footer {
  border-top: 1px solid rgba(90, 62, 43, 0.08);
  padding-top: 1.5rem;
}

.login-link {
  color: #b88746;
  font-weight: 700;
  text-decoration: none;
}

.login-link:hover {
  color: #a87635;
  text-decoration: none;
}

.dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(90, 62, 43, 0.08);
  box-shadow: 0 10px 25px rgba(40, 8, 5, 0.08);
}

.dropdown-item {
  font-weight: 600;
  color: #3f3128;
}

.dropdown-item:hover {
  background-color: #f5e7d4;
  color: #b88746;
}

/* =========================
   USER ACCOUNTS
   ========================= */

.account-page {
    background: #fbf7f0;
    min-height: 70vh;
}

.section-kicker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9c6b3f;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: #3b2a1f;
    font-weight: 700;
}

.section-subtitle {
    color: #6f6258;
    max-width: 600px;
    margin: 0 auto;
}

.account-sidebar,
.account-content {
    background: #fffaf3;
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(156, 107, 63, 0.15);
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #efe1cf;
    color: #8a5a32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.account-menu .list-group-item {
    background: transparent;
    border: none;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    color: #3b2a1f;
    font-weight: 500;
}

.account-menu .list-group-item:hover {
    background: #efe1cf;
    color: #3b2a1f;
}

.account-action-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(156, 107, 63, 0.15);
}

.account-action-card h5 {
    color: #3b2a1f;
    font-weight: 700;
}

.account-action-card p {
    color: #6f6258;
    margin-bottom: 0;
}

.btn-account {
    background: #8a5a32;
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    white-space: nowrap;
}

.btn-account:hover {
    background: #6f4524;
    color: #fff;
}

.account-action-card.danger {
    border-color: rgba(220, 53, 69, 0.25);
}

@media (max-width: 768px) {
    .account-action-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dropdown-menu {
    background: #fffaf3;
    border-radius: 12px;
    border: 1px solid rgba(156, 107, 63, 0.15);
}

.dropdown-item {
    color: #3b2a1f;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #efe1cf;
    color: #3b2a1f;
}

/* =========================
   USER DROPDOWN NAVBAR FIX
   ========================= */

.user-nav .dropdown-menu {
    background-color: #fffaf3;
}

.user-nav .dropdown-menu .dropdown-item,
.user-nav .dropdown-menu button.dropdown-item {
    color: #3b2a1f !important;
    background-color: transparent;
    font-weight: 600;
}

.user-nav .dropdown-menu .dropdown-item i {
    color: #8a5a32 !important;
}

.user-nav .dropdown-menu .dropdown-item:hover,
.user-nav .dropdown-menu button.dropdown-item:hover {
    background-color: #efe1cf;
    color: #3b2a1f !important;
}

.user-nav .dropdown-menu .dropdown-item:hover i {
    color: #8a5a32 !important;
}

/* =========================
   MODALE CANCELLA ACCOUNT
   ========================= */
.delete-account-modal {
    border-radius: 18px;
    background: #fffaf3;
}

.delete-account-modal .modal-title {
    font-family: 'Playfair Display', serif;
    color: #3b2a1f;
    font-weight: 700;
}

.delete-account-modal .modal-header,
.delete-account-modal .modal-footer {
    border-color: rgba(156, 107, 63, 0.15);
}

/* =========================
   PRIVACY
   ========================= */

.login-consent-group {
    text-align: left;
    font-size: 0.9rem;
    color: #5f5a55;
    line-height: 1.5;
}

.login-consent-group .form-check-input {
    margin-top: 0.25rem;
}

.login-consent-group .form-check-label {
    padding-left: 0.35rem;
}

.login-consent-group a {
    font-weight: 600;
}

.login-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin-bottom: 14px;
}

.login-consent-check {
    flex: 0 0 auto;
    padding-top: 3px;
}

.login-consent-check input[type="checkbox"] {
    position: static;
    margin: 0;
    width: 16px;
    height: 16px;
}

.login-consent-label {
    margin: 0;
    color: #4f4944;
    font-size: 0.92rem;
    line-height: 1.55;
}

.account-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.account-consent-row input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.account-consent-row label {
    margin: 0;
    color: #4f4944;
    line-height: 1.5;
}

.account-consent-meta {
    font-size: 0.85rem;
    color: #7a726b;
}

.account-sidebar {
    margin-bottom: 2rem;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    .account-sidebar {
        position: sticky;
        top: 110px;
    }
}