@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;900&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Inter", sans-serif;
  color: #eee;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

/* Login / Signup Container */
.container {
  max-width: 50rem;
  margin: 6vh auto;
  padding: 4rem 3rem;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.logo {
  height: 9rem;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2.5rem;
  font-size: 3.8rem;
}

/* Forms */
input,
select {
  width: 100%;
  padding: 1.8rem 2rem;
  margin: 1.2rem 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

button,
.form__btn {
  width: 100%;
  padding: 2rem;
  margin-top: 2rem;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  border: none;
  border-radius: 16px;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

button:hover,
.form__btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(255, 215, 0, 0.6);
}

.newUser {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}
.newUser .golden {
  color: #ffed4e;
}

/* PIN Reveal */
.pin-reveal {
  margin: 4rem 0;
  padding: 3.5rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  border: 2px solid #dc143c;
  border-radius: 24px;
}

.pin-label {
  font-size: 2.6rem;
  color: #ff6b6b;
  font-weight: bold;
}

.pin-number {
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 1.5rem;
  color: #ffd700;
  text-shadow: 0 0 40px #ffd700;
  margin: 2rem 0;
}

.security-warning {
  background: rgba(255, 107, 107, 0.15);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 2rem;
  color: #ffcccc;
  font-size: 1.7rem;
}

.continue-btn {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  font-weight: bold;
}

.countdown-text {
  margin-top: 2.5rem;
  font-size: 2.2rem;
  color: #ffd700;
  font-weight: bold;
}

/* Dashboard */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 6rem;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  top: 0;
  z-index: 1000;
}

.welcome {
  font-size: 2.8rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login__btn {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  border: none;
  text-align: start;
  font-size: 3rem;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
  transition: all 0.3s;
}

.login__btn:hover {
  transform: scale(1.15);
}

.app {
  opacity: 0;
  transition: opacity 1.5s ease;
  margin: 4rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Balance */
.balance {
  grid-column: 1 / -1;
  background: rgba(20, 20, 40, 0.8);
  backdrop-filter: blur(20px);
  padding: 4rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.balance__label {
  font-size: 2.6rem;
  color: #aaa;
}

.balance__date {
  font-size: 1.9rem;
  color: #00c8c8;
  margin-top: 0.8rem;
}

.balance__value {
  font-size: 7.5rem;
  font-weight: 900;
  font-family: "Playfair Display", serif;
  background: linear-gradient(90deg, #ffd700, #ffffff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

/* Movements */
.movements {
  background: rgba(15, 15, 30, 0.9);
  border-radius: 20px;
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid rgba(0, 200, 200, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.movements__row {
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.movements__row:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateX(15px);
}

.movements__type {
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  color: white;
}

.movements__type--deposit {
  background: linear-gradient(45deg, #00c853, #64dd17);
}
.movements__type--withdrawal {
  background: linear-gradient(45deg, #ff1744, #f50057);
}

.movements__date {
  font-size: 1.6rem;
  color: #00c8c8;
}
.movements__value {
  font-size: 2.4rem;
  font-weight: 600;
}

/* Summary */
.summary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 2rem;
  padding: 3.5rem;
  background: rgba(0, 200, 200, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(0, 200, 200, 0.4);
}

.summary__label {
  font-size: 1.8rem;
  color: #aaa;
}
.summary__value {
  font-size: 3.6rem;
  font-weight: 700;
}
.summary__value--in {
  color: #00c853;
}
.summary__value--out {
  color: #ff1744;
}
.summary__value--interest {
  color: #ffd700;
}

.btn--sort {
  background: none;
  border: none;
  color: #ffd700;
  margin-left: 1.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.4s;
}

/* Operations */
.operation {
  padding: 3.5rem;
  border-radius: 24px;
  backdrop-filter: blur(15px);
  border: 1px solid transparent;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.operation--transactions {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
}
.operation--transactions option {
  color: #000;
}
.operation--loan {
  margin-block: 2rem;
  background: rgba(0, 200, 200, 0.15);
  border-color: rgba(0, 200, 200, 0.4);
}
.operation--close {
  background: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.4);
}

.operation h2 {
  margin-bottom: 2.5rem;
  font-size: 2.8rem;
  background: linear-gradient(90deg, #ffd700, #00c8c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form__input {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 14px;
}

.form__btn {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  padding: 2rem;
  font-weight: bold;
}

.logout-timer {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.4rem;
  margin-top: 4rem;
  color: #ffd700;
}

.timer {
  font-weight: 900;
  color: #ff1744;
}

/* Media Quearies */
@media (max-width: 968px) {
  html {
    font-size: 55%;
  }

  .container {
    margin: 2vh 1rem;
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  h1,
  h2 {
    font-size: 3rem;
  }

  input,
  select,
  button {
    padding: 1.5rem 1.8rem;
    font-size: 1.6rem;
  }

  nav {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .app {
    grid-template-columns: 1fr;
    margin: 2rem;
    gap: 3rem;
  }

  .balance {
    padding: 3rem;
    border-radius: 20px;
  }

  .balance__value {
    font-size: 5rem;
  }

  .movements {
    max-height: 40vh;
  }

  .movements__row {
    padding: 2rem 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .movements__type {
    margin-bottom: 0.5rem;
  }

  .summary {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
  }

  .summary__value {
    font-size: 3rem;
  }

  .operation {
    padding: 2.5rem;
  }

  .operation h2 {
    font-size: 2.4rem;
  }

  .logout-timer {
    font-size: 2rem;
    margin-top: 3rem;
  }

  .timer {
    font-size: 2.2rem;
  }
}
