/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6

- Letter spacing
-0.5px
0.75px

--- 02 COLORS

- Primary: #e67e22
- Tints:
#fdf2e9
#fae5d3
#eb984e

- Shades: 
#cf711f
#45260a

- Accents:
- Greys

#888
#767676 (lightest grey allowed on #fff)
#6f6f6f (lightest grey allowed on #fdf2e9)
#555
#333

--- 05 SHADOWS

0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);

--- 06 BORDER-RADIUS

Default: 9px
Medium: 11px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

:root {
  /* 1. Base Scaling Logic */
  /* This says: Start at 1rem, grow with the screen, but cap at 1.25rem */
  --font-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);

  /* 2. Fluid Scale (The "Step" System) */
  /* Step -1: Small text (Captions) */
  --text-sm: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);

  /* Step 1: Subheaders / Large body */
  --text-md: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);

  /* Step 2: H3 / Section Headers */
  --text-lg: clamp(1.5rem, 1.3rem + 1vw, 2.2rem);

  /* Step 3: H2 / Card Titles */
  --text-xl: clamp(2rem, 1.5rem + 2vw, 3.5rem);

  /* Step 4: H1 / Hero Titles */
  --text-xxl: clamp(2.5rem, 2rem + 3vw, 5rem);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* html {
  font-size: 62.5%;
} */

body {
  font-family:
    MarkForMC,
    -apple-system,
    system-ui,
    BlinkMacSystemFont,
    Seoge UI,
    Roboto,
    Helvetica Neue,
    Arial,
    sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color: #141413;
  background-color: #f5f5f7;
  font-size: var(--font-base);
  display: flex;
  flex-direction: column;
  /* min-height: 100vh; */
  min-height: 100dvh;

  transition: all 3s;
}

.heading {
  font-size: var(--text-md);
  margin-bottom: 20px;
}

header,
footer,
main {
  padding: 0.2em clamp(1rem, 5vw, 4.8em);
  display: flex;
}

header,
footer {
  color: #fff;
  background-color: #141413;
  background-size: cover;
}

header {
  height: 80px;
  border-bottom: 1px solid #96918b;
  font-size: var(--text-sm);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3em;
}

header .nav-list {
  display: flex;
  gap: 1.4em;
}

a {
  text-decoration: none;
  color: #fff;
}

main {
  flex-grow: 1;
  margin: 4.8em 1.8em;
  flex-direction: column;

  margin-block: 2rem;
  margin-inline: auto;
  width: min(90%, 1100px);
}

main a {
  color: #555;
  /* color: inherit; */
}

.logo {
  max-width: 110px;
  height: 80px;
}

main .b3-form-section .b3-form {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  transition: all 2s;
}

main .b3-form-section .b3-form div {
  display: flex;
  flex-direction: column;

  /* display: block; */
}

.b3-form input {
  border: 1px solid #96918b;
  background-color: #ffffff;
  padding: 6px 10px;
  margin: 0;
  width: 100%;
  max-width: 20rem;
  color: #141413;
}

.b3-form label {
  margin-bottom: 0.2em;
}

.b3-form label span {
  color: #ff0000;
}

.button {
  border: none;
  background-color: #cf4500;
  padding: 6px 0px;
  margin-top: 15px;
  margin-bottom: 15px;
  width: 140px;
  /* font-size: 16px; */
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  border-radius: 20px;
}

/* .card-link-btn {
  cursor: unset;
} */

.regURL {
  margin-left: 0.5em;
}

.regURL a:link,
.regURL a:visited {
  color: #cf4500;
}

.regURL a:hover,
.regURL a:active {
  cursor: pointer;
}

.forgot-password:hover,
.forgot-password:active {
  cursor: inherit;
}

ul li {
  list-style: none;
}

/* Styling for account dashboard */

.account-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: center;
}

.account-details,
.account-card {
  color: #fff;
  line-height: 1.5;
  width: 100%;
  max-width: 27rem;
  min-width: 15rem;
  height: auto;
  min-height: fit-content;

  background-color: #141413;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  margin-bottom: 2em;
  padding: 1.5rem 1.5rem;
}

.account-details {
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

.account-card {
  letter-spacing: 2px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.account-balance p {
  margin: 0 0 0.8em 1em;
}

.balance {
  font-size: var(--text-xl);
  letter-spacing: 3px;
  margin-bottom: 0.8em;
}

.account-activity {
  /* font-size: small; */

  text-align: center;
  display: flex;
  gap: 1.8em;
  align-items: center;
  justify-content: space-evenly;
}

.card-chip-img {
  width: 3em;
  height: 3em;
}

.account-card-div-1,
.account-card-div-2,
.account-card-div-3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-data-1,
.card-data-2,
.card-data-3 {
  display: flex;
  flex-direction: column;
}

.card-num,
.card-name,
.card-type {
  font-weight: bold;
}

.card-num {
  /* font-size: xx-small; */
  font-size: var(--font-base);
  /* letter-spacing: 0.3em; */
  font-family: "Courier New", monospace;
  font-variant-numeric: tabular-nums; /* Keeps numbers perfectly aligned */
  /* Min: 1.2rem, Max: 2.4rem, Preferred: 2.2 viewport width */
  font-size: clamp(1rem, 2.2vw, 2.4rem);

  letter-spacing: 0.1em; /* Makes card numbers easier to read */
}

.smaller-font {
  /* font-size: small; */
  font-size: var(--text-sm);
}

/* End of stying for account dashboard */

/* Styling for Account-Card Link form */

.link-form-section,
.profile-section {
  color: #fff;
  font-size: var(--text-sm);
  background-color: #141413;
  margin: 0 auto;
  box-shadow: 0 1px 1px rgba (0, 0, 0, 0.075);
  padding: 3.2rem 5%;
  position: relative;
  z-index: 1000;
  max-height: fit-content;
  width: fit-content;
  min-width: fit-content;
  max-width: fit-content;
}

.acct-card-link-form {
  padding: 1.2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.acct-card-link-form div {
  display: flex;
  flex-direction: column;
}

.link-form-section > .bpara {
  margin-bottom: 1em;
}

.acct-card-link-form input {
  border: 1px solid #96918b;
  background-color: #ffffff;
  padding: 6px 10px;
  margin: 0;
  width: 280px;
  color: #141413;
}

.acct-card-link-form label {
  margin-bottom: 0.2em;
}

.acct-card-link-form label span {
  color: #ff0000;
}

.account-profile {
  padding: 1.2rem auto;
}

.account-profile ul {
  display: flex;
  flex-direction: column;
  /* gap: 1.8em; */
}

.account-profile > ul > li {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  /* border-top: 1px solid #fff; */
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon {
  width: 1.4em;
  height: 1.4em;
}

/* .account-profile > ul > li:first-child {
  border-bottom: none;
} */

.address-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.x-close,
.x-close-profile {
  fill: #fff;
  width: 3em;
  height: 3em;
  cursor: pointer;
  position: absolute;
  top: 0.4em;
  right: 0.4em;
  margin-left: 15em;
}

/* End of Styling for Account-Card Link form */

.no-display {
  display: none;
  opacity: 0;
  position: absolute;
  top: -200%;
  transition: all 2s;
  pointer-events: none;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  backdrop-filter: blur(4px);
}

.error {
  font-size: x-small;
  font-weight: bolder;
  color: #ff0000;
  border: 2px solid #ff0000;
  padding: 0.8em;
  background-color: #d1470249;
  width: 100%;
  max-width: 30em;

  display: none;
  justify-content: start;
  align-items: center;
  z-index: 100000;
}

.button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
  opacity: 0.7;
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px; /* Space between spinner and text */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Styling for Footer */

footer {
  color: #fff;
  line-height: 1.6;
  flex-direction: column;
  gap: 1.2em;
}

footer section {
  /* background-color: red; */
  /* max-width: 100%; */
  padding: 0 1.4em;
}

footer .more-details {
  display: flex;
  align-items: center;
  /* background-color: red; */
  width: 70%;
  justify-content: space-between;
  /* gap: 10em; */
}

footer .more-details h2 {
  margin-bottom: 0.8em;
}

footer .more-details ul {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

footer .more-question {
  border-left: 1px solid #626868;
}

footer .copy {
  text-align: center;
  margin-top: 2.4em;
}
