/* html,body and content-wrapper defined to push the footer to the bottom of the page */
html, body {
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column
}

.content-wrapper {
	flex: 1;
}

.portal-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 2rem 1rem;
  max-width: 900px;
//	min-height:450px;
  margin: 0 auto;
  box-sizing: border-box;
  flex:1;
}

.portal-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

.portal-container .dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.portal-container .tile {
  background: linear-gradient(to bottom, #f0f4ff, #e0e7ff);
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 180px;
}

.portal-container .tile:hover {
  background-color: #e0f0ff;
  transform: translateY(-5px);
}

.portal-container .tile i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #007bff;
}

.portal-container .tile span {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.portal-container #account-section {
  margin-top: 2rem;
}

.portal-container .account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.portal-container .account-tabs button {
  flex: 1 1 45%;
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.portal-container .account-tabs button:hover {
  background-color: #0056b3;
}

/* Add a style for the active state */
.portal-container .account-tabs button.active {
  background-color: #4CAF50; /* Green color for active button */
  color: white; /* Make the text white */
  border-color: #4CAF50; /* Match the border with the background */
}

.portal-container form {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portal-container form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.portal-container form input[type="text"],
.portal-container form input[type="email"],
.portal-container form input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.portal-container form .checkbox {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.portal-container form .checkbox input {
  margin-left: 5px;
}

.portal-container form button {
  margin-top: 1.5rem;
  /* background-color: #28a745;		Green button */
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.portal-container form button:hover {
  /* background-color: #218838;		blue hover	*/
  background-color: #0056b3;
}

.portal-container .back-to-dashboard-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px; /* Adds spacing below the button */
  display: none;
}

.portal-container .back-to-dashboard-button:hover {
  background-color: #45a049;
}

/* *********** Purchases && Pawns *************************** */
.portal-container .purchase-cards,
.portal-container .layaways-cards,
.portal-container .pawns-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.portal-container .purchase-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  background-color: #E8E8E8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease;
}

.portal-container .layaways-card,
.portal-container .pawns-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden; /* 🡐 IMPORTANT: this ensures no white gaps */
  background-color: #E8E8E8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease;
  padding: 0; /* 🡐 remove padding from the card itself */
}

.portal-container .layaways-card-header-cart,
.portal-container .pawns-card-header-cart {
  background-color: #4CAF50; /* Green color for active cart items */
 color: white;
  padding: 0 16px;
  min-height: 35px; /* minimum height */
  line-height: 35px; /* centers normal short text */
  font-weight: bold;
  font-size: 1.4rem;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.portal-container .layaways-card-header,
.portal-container .pawns-card-header {
background-color: #007bff; /* Blue color */
 color: white;
  padding: 0 16px;
  min-height: 35px; /* minimum height */
  line-height: 35px; /* centers normal short text */
  font-weight: bold;
  font-size: 1.4rem;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.portal-container .layaways-body,
.portal-container .pawns-body {
  padding: 10px; /* 🡐 put padding *only* inside the body */
}

/* BG color change for default date pawn card */
.portal-container .layaways-card.def-date,
.portal-container .pawns-card.def-date{
  background-color: #ffe5e5; /* light red */
}

.portal-container .purchase-card:hover,
.portal-container .layaways-card:hover,
.portal-container .pawns-card:hover {
  background-color: #f0faff;
  cursor: pointer;
}

.portal-container .purchase-header,
.portal-container .layaways-header,
.portal-container .pawns-header {
  display: flex;
  justify-content: space-between;
  font-size: 1.1em;
  margin-bottom: 0.5rem;
}

.portal-container .purchase-body p,
.portal-container .layaways-body p,
.portal-container .pawns-body p {
  margin: 4px 0;
}

.portal-container .layaways-body-row,
.portal-container .purchase-body-row,
.portal-container .pawns-body-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
}

.cart-icon-inline {	/* show shopping cart item if pawn / or layaway is in cart */
  color: #e53935; 
  background-color: #ADD8E6;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-left: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  top: 10px;
  right: 10px;
  padding: 4px;
}

/* ****************** Purchase Card transaction details *************** */
.portal-container .purchase-item-card {
 display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 1rem;
  background-color: #fff;
}

.portal-container .purchase-item-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* ========== Content Row for Desktop ========== */
.portal-container .item-content-row {
  display: flex;
  flex-direction: column; /* Default for mobile */
  gap: 1rem;
}

/* ========== Item Left (Text Info) ========== */
.portal-container .item-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portal-container .item-details {
  text-align: left;
}

/* ========== Image ========== */
.portal-container .item-image-wrapper {
  width: 100%; /* full width on mobile */
}

.portal-container .item-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* ========== Item Row + Label ========== */
.portal-container .item-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.portal-container .item-label {
  font-weight: bold;
  color: #444;
  margin-right: 0.5rem;
  min-width: 100px;
  display: inline-block;
}

/* ========== Actions ========== */
.portal-container .item-actions,
.portal-container .pawn-item-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center; /* centered on mobile */
  flex-direction: column;  /* Stack elements vertically by default */
  align-items: center;  /* Center elements horizontally */
}

.portal-container .item-actions a,
.portal-container .item-actions button,
.portal-container .pawn-item-actions button {
  padding: 0.75rem 1rem;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  text-align: center; /* make sure text is centered */
  line-height: 1.2;
}

.portal-container .item-actions button,
.portal-container .pawn-item-actions button {
  background: #28a745;
}

.portal-container .item-actions a:hover,
.portal-container .item-actions button:hover,
.portal-container .pawn-item-actions button:hover {
  background: #0056b3;
}
.portal-container .pawn-item-actions .pawn-instructions {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-align: center;
/*  max-width: 320px;	*/
  margin-left: auto;
  margin-right: auto;
}
.portal-container .pawn-item-actions .pawn-payment-btn {
    font-size: 1.4rem; 
}
.portal-container .pawn-item-actions .pawn-payment-btn-disabled {
  background: #ccc !important;        /* gray background */
  color: #888 !important;             /* dull text */
  cursor: not-allowed !important;     /* indicate it's disabled */
  pointer-events: none;               /* prevent click */
  position: relative;
}

.portal-container .pawn-item-actions .pawn-payment-btn-disabled::after {
  content: attr(data-tooltip);        /* show hover text */
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #444;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 2;
}

.portal-container .pawn-item-actions .pawn-payment-btn-disabled:hover::after {
  opacity: 1;
}

/* ========== Description Subset ========== */
/* Subset of data for purchase transaction item Description */
.portal-container .description-subset {
  margin-top: 10px;
  padding-left: 20px; /* Indentation for nested data */
  display: block;
}

.portal-container .description-subset .item-row {
  display: block;
  margin-bottom: 5px;
}

.portal-container .description-subset .item-label {
  font-weight: bold;
  min-width: 100px; /* Label width for nested data */
}

.portal-container .description-subset .item-value {
  font-weight: normal;
  padding-left: 10px;
}
.portal-container .item-row .item-value {
  flex-grow: 1;
  padding-left: 10px; /* Indentation for the value */
  word-wrap: break-word;
}

/* ========== Pawn Financial Summary =========== */
.portal-container .pawn-summary,
.portal-container .layaway-summary {
  border-top: 1px solid #ccc;
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.portal-container .pawn-summary .summary-row,
.portal-container .layaway-summary .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  align-items: center;
  width:100%;
  margin: 4px 0;
  flex-wrap: nowrap;
}
.portal-container .layaway-summary .summary-row-end {
  border-bottom: 1px solid #ccc;
}
.portal-container .pawn-summary .summary-label,
.portal-container .layaway-summary .summary-label {
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  flex: 0 0 auto;
  padding-right: 1rem;
}

.portal-container .pawn-summary .summary-value,
.portal-container .layaway-summary .summary-value {
  text-align: right;
  color: #555;
  white-space: nowrap;
 flex: 1;
}

/* =========== Password form styles ============ */
/* Container for any form message */
.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1.3rem;
  text-align: left;
  display: none; /* Hidden by default */
}

/* Error styling */
.form-message.error {
  background-color: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}

/* Success styling */
.form-message.success {
  background-color: #e6f4ea;
  color: #1b5e20;
  border: 1px solid #c3e6cb;
}

/* ========== Layaway form styles ============== */
.layaway-payment-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.portal-container .layaway-item-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.portal-container .layaway-balance {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.portal-container .layaway-balance-amount {
  color: #007bff; /* matches your blue button */
}

.portal-container .layaway-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 420px;
}

.portal-container .addon-dollar {
  padding: 0.75rem 0.9rem;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-right: none;
  font-size: 1.25rem;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.portal-container .layaway-payment-input {
  flex: 1;
  padding: 0.75rem;
  font-size: 1.25rem;
  border: 1px solid #ccc;
  border-left: none;
  border-right: none;
  box-sizing: border-box;
}

.portal-container .layaway-add-btn {
  padding: 0.75rem 1rem;
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
  font-size: 1.1rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.portal-container .layaway-add-btn:disabled {
  background-color: #cce0ff; /* lighter blue */
  border-color: #cce0ff;
  color: #666;
  cursor: not-allowed;
}
.portal-container .layaway-add-btn:hover {
  background-color: #0056b3;
}

/* ========== Favorite slider displkay ============== */
.favorites-carousel-wrapper {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
}

.favorites-carousel-wrapper h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.carousel-arrow {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  z-index: 2;
}

.carousel-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.favorites-carousel {
  display: flex;
  justify-content: center;         /* Center items horizontally */
  align-items: center;
  gap: 1rem;                        /* Space between images */
  overflow-x: auto;
  overflow-y: hidden; /* hide vertical scroll bar */
  scroll-snap-type: x mandatory;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}
/*
.favorite-item {
  flex: 0 0 auto;
  width: 120px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.favorite-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.favorite-item:hover {
  transform: scale(1.05);
}
*/

.favorite-item {
  flex: 0 0 auto;
  width: 120px;
  margin: 0 6px;
  text-align: center; /* center actions */
}

.favorite-img-wrap {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.favorite-img-wrap:hover {
  transform: scale(1.05);
}

.favorite-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* control heigh of favorite images */
.favorite-img-wrap img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.favorite-actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fav-btn {
  border: none;
  padding: 6px 8px;
  font-size: 1rem;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-btn i {
  pointer-events: none;
}

.fav-delete-btn {
  background-color: #dc3545; /* Bootstrap red */
}

.fav-cart-btn {
  background-color: #28a745; /* Bootstrap green */
}

.fav-btn:hover {
  opacity: 0.85;
}
.favorite-notice {  
  color: #e53935; /* strong red */
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 0px;
  text-align: center;
}

.layaway-progress-wrapper {
  width: 100%;
  max-width: 480px;        /* About half-screen on desktop */
  margin: 1rem auto;     /* Centered */
  padding: 0 1rem;
}

/* Desktop only */
@media (min-width: 768px) {
  .layaway-progress-wrapper {
    max-width: 480px;
  }
}

.layaway-progress-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}

.layaway-progress-bar {
  width: 100%;
  height: 18px;
  background: #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.layaway-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #45a049);
  border-radius: 12px;
  transition: width 0.6s ease;
  position: relative;
  z-index: 2;
}

/* Expected progress (red "behind" green) */
.layaway-progress-expected {
  height: 100%;
  width: 0%;
  background: rgba(255, 0, 0, 0.45);
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: width 0.6s ease;
}

/* ========== Desktop Styles (≥768px) ========== */
@media (min-width: 768px) {
  .portal-container .purchase-item-card {	/* stack content vertically */
    flex-direction: column;
  }
  .portal-container .item-content-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
  .portal-container .item-image-wrapper {
    width: 200px;
    flex-shrink: 0;
  }

  .portal-container .item-actions {
    justify-content: flex-start;
  }

  .portal-container .item-actions a,
  .portal-container .item-actions button {
    display: inline-block;
    margin: 0; /* remove mobile margin */
  }

  .portal-container .purchase-cards,
  .portal-container .layaways-cards,
  .portal-container .pawns-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .portal-container .purchase-card,
  .portal-container .layaways-card,
  .portal-container .pawns-card {
    flex: 1 1 calc(50% - 1rem);	/* allows for 2 cards per row when over 600 px */
  }
  .portal-container .pawn-item-actions {
    flex-direction: column;  /* Align horizontally on larger screens */
    gap: 1.5rem;  /* Increase space between button and text */
  }
  
  .portal-container .pawn-item-actions .pawn-instructions {
    font-size: 1.4rem;  /* Slightly smaller on larger screens */
    margin-bottom: 0;  /* Remove extra space on PC */
  }
}

/* Mobile layout (default) */
@media (max-width: 767px) {
  .portal-container .item-actions {
    flex-direction: column;
    align-items: center;
  }

  .portal-container .item-actions a,
  .portal-container .item-actions button {
    display: block;
    margin: 0.5rem auto;
    width: 60%;			/* take up full available width */
    text-align: center;
    font-size: 1.35rem;    /* even slightly bigger on mobile if desired */
	padding: 0.75rem 1rem;
  }

  .portal-container .pawn-summary .summary-row,
  .portal-container .layaway-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem; /* Larger text for readability */
    max-width: 100%;
    margin: 6px 0;
    padding: 0 8px; /* Add horizontal padding inside each row */
  }

  .portal-container .pawn-summary .summary-value,
  .portal-container .layaway-summary .summary-value {
    flex: 0 0 auto; /* Prevent stretching */
    white-space: nowrap;
  }
  .portal-container .pawn-summary .summary-label,
  .portal-container .layaway-summary .summary-label {
    margin-left: 30px; /* Pull label/value closer together */
  }

  .portal-container .pawn-summary .summary-value,
  .portal-container .layaway-summary .summary-value {
    margin-left: auto; /* Keep right aligned */
	margin-right:50px;
    text-align: right;
  }
  .portal-container .pawn-item-actions {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    flex-direction: column;  /* Stack vertically on mobile */

  }

  .portal-container .pawn-item-actions .pawn-payment-btn{
    width: 60%;
    margin: auto;
  }
  .portal-container .pawn-item-actions .pawn-instructions {
    font-size: 1.1rem;  /* Larger text on mobile */
    margin-bottom: 0.5rem;  /* Space below the text */
  }
  .portal-container .layaway-input-group {
    max-width: 70%; /* instead of full width */
  }

  .portal-container .layaway-payment-input {
    font-size: 1.3rem;
  }

  .portal-container .layaway-add-btn {
    font-size: 1rem;
    padding: 0.6rem 0.9rem;
  }
}
/* ***************  loader images ********************* */
.bar_loader{
	position: absolute;
	top: calc(100% + 40px); /* 40px below the div */
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;

	height: 32px;
	width: 150px;
	box-sizing: border-box;
	overflow: hidden;
	border: 2px solid #000;
	border-radius: 20px;
}

.bar_loader:before{
	content: '';
	position: absolute;
	left: 0;
	bottom: 2px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #FF3D00;
	animation: ballbns 3s ease-in-out infinite;
}
  
  @keyframes ballbns {
    0% {  
        left: 0; 
        transform: translateX(0%); 
        box-shadow: 
        -5px 0 0 -1px rgba(255, 61, 0, 0.9),
        -10px 0 0 -2px rgba(255, 61, 0, 0.8),
        -15px 0 0 -4px rgba(255, 61, 0, 0.6),
        -20px 0 0 -6px rgba(255, 61, 0, 0.4),
        -25px 0 0 -8px rgba(255, 61, 0, 0.2);
    }
    49% {  
        left: 100%; 
        transform: translateX(-100%); 
        box-shadow: 
        -5px 0 0 -1px rgba(255, 61, 0, 0.9),
        -10px 0 0 -2px rgba(255, 61, 0, 0.8),
        -15px 0 0 -4px rgba(255, 61, 0, 0.6),
        -20px 0 0 -6px rgba(255, 61, 0, 0.4),
        -25px 0 0 -8px rgba(255, 61, 0, 0.2);
    }
    51% {  
        left: 100%; 
        transform: translateX(-100%); 
        box-shadow: 
        5px 0 0 -1px rgba(255, 61, 0, 0.9),
        10px 0 0 -2px rgba(255, 61, 0, 0.8),
        15px 0 0 -4px rgba(255, 61, 0, 0.6),
        20px 0 0 -6px rgba(255, 61, 0, 0.4),
        25px 0 0 -8px rgba(255, 61, 0, 0.2);
    }
    100% {  
        left: 0; 
        transform: translateX(0%); 
        box-shadow: 
        5px 0 0 -1px rgba(255, 61, 0, 0.9),
        10px 0 0 -2px rgba(255, 61, 0, 0.8),
        15px 0 0 -4px rgba(255, 61, 0, 0.6),
        20px 0 0 -6px rgba(255, 61, 0, 0.4),
        25px 0 0 -8px rgba(255, 61, 0, 0.2);
    }
  }  
  
/* *** COIN Loader *** */
.coin_loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px); /* pushes it down */
  z-index: 9999;
}
.coin_loader:after {
  content: '$';
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-align: center;
  line-height:40px;
  font-size: 32px;
  font-weight: bold;
  background: #FFD700;
  color: #DAA520;
  border: 4px double ;
  box-sizing: border-box;
  box-shadow:  2px 2px 2px 1px rgba(0, 0, 0, .1);
  animation: coin-flip 4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes coin-flip {
  0%, 100% {
    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
  }
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(1800deg);
    animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
  }
  100% {
    transform: rotateY(3600deg);
  }
}

/*  ******  Login page styles ****** */
/* Main container */
.login-container {
  max-width: 400px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem;
  background: #eee;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  font-family: Arial, sans-serif;
/*  display: block;          /* ensure block-level behavior */
/*  position: relative;      /* keep it in normal flow, allow stacking context */
/*  z-index: 1;              /* avoid being visually behind other elements */
/*  clear: both;             /* clear any floats above so it starts below them */

  margin-bottom: 3rem;     /* create definite space below the container */
  border: 3px solid red !important;
}

/* Title */
#act-login-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Form elements */
#act-login-form label {
  display: block;
  text-align: left;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

#act-login-form input {
  width: 100%;
/*  padding: 0.9rem;	relative padding */
  padding: 8px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: border 0.2s ease;
}

#act-login-form input:focus {
  border-color: #d7361e;
}

/* Main Login Button */
#act-btn-login, #act-btn-register, #act-btn-complete-register {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.5rem;
  font-weight: bold;
/*  background-color: #d7361e;		RED	*/
  background-color: #1080e8;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 0.3rem;
}

#act-btn-login:hover, #act-btn-register:hover {
  opacity: 0.85;
}

/* Forgot Password Button */
#act-btn-forgot, #act-btn-forgot-sub, #act-btn-cancel-register {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: rgba(215, 54, 30, 0.5);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 0.7rem;
}
#act-btn-forgot-sub {
  background-color: rgba(215, 54, 30, 1);
  font-size: 1.5rem;
}

#act-btn-forgot:hover,#act-btn-forgot-sub:hover,#act-btn-cancel-register {
  opacity: 0.8;
}

/* Divider */
.login-divider {
  margin: 1.8rem 0;
  display: flex;
  align-items: center;
  text-align: center;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ddd;
}

.login-divider span {
  padding: 0 1rem;
  font-weight: 600;
  color: #777;
}

/* Footer area */
.login-footer,.login-footer-return p {
  margin-bottom: 0.6rem;
  font-weight: 600;
}

#act-btn-show-register,#act-btn-show-login {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #49a7ff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s;
}

#act-btn-show-register:hover,#act-btn-show-login:hover {
  opacity: 0.85;
}

/* Error message bar */
.act-login-error {
    width: 100%;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.act-login-success {
    width: 100%;
    background-color: #97e6ac;
    color: #32911c;
    border: 1px solid #70ba5f;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


