/* Font Definitions */
@font-face {
  font-family: 'mBank';
  font-weight: 450;
  font-display: swap;
  font-style: normal;
  src: url('mBank-SemiBold.woff2') format('woff2');
  src: url('mBank-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 500;
  font-display: swap;
  font-style: normal;
  src:
    url('Montserrat-Medium.woff2') format('woff2'),
    url('Montserrat-Medium.woff') format('woff');
}

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'DejaVu Sans', Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 450;
  color: #26221e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Stripe - multicolor gradient bar with exact colors from design system */
hr.stripe {
  margin: 0;
  padding: 0;
  border: none;
  height: 6px;
  background: linear-gradient(
    to right,
    #e90a0a 0%,
    #e90a0a 26.319444444444446%,
    #26221e 26.319444444444446%,
    #26221e 29.236111111111114%,
    #ff8600 29.236111111111114%,
    #ff8600 56.18055555555556%,
    #ae0000 56.18055555555556%,
    #ae0000 73.75%,
    #0065b1 73.75%,
    #0065b1 75.625%,
    #008520 75.625%,
    #008520 100%
  );
}

/* Main container */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f6f6f6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding-top: 24px;
}

.logo {
  height: 24px;
  width: auto;
}

/* Content wrapper */
.content-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  /* padding: 20px 0; */
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Text content */
.text-content {
  max-width: 444px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

/* Typography */
h1 {
  font-family: 'mBank', 'DejaVu Sans', Verdana, sans-serif;
  font-size: 2rem; /* 32px */
  line-height: 2.5rem; /* 40px */
  font-weight: 600;
  color: #26221e;
  margin: 0;
  letter-spacing: -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem; /* 40px */
    line-height: 3rem; /* 48px */
  }
}

p {
  font-family: 'Montserrat', 'DejaVu Sans', Verdana, sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.5rem; /* 24px */
  font-weight: 500;
  color: #26221e;
  margin: 0;
}

/* Link */
a.link {
  color: #0065b1;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a.link:hover {
  color: #00518f;
}

a.link:focus {
  color: #00518f;
  outline: 2px solid #0065b1;
  outline-offset: 2px;
}

/* Button - Primary (RED, default style from mBankNext theme) */
button.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-height: 44px;
  min-width: 120px;
  font-family: 'mBank', 'DejaVu Sans', Verdana, sans-serif;
  font-size: 1rem; /* 16px */
  font-weight: 600;
  line-height: 1.5rem;
  text-transform: none;
  color: #ffffff;
  background-color: #ae0000;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow: hidden;
}

button.btn > span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 24px;
}

button.btn:hover {
  background-color: #850000;
}

button.btn:active {
  background-color: #850000;
  transform: translateY(2px);
}

button.btn:focus {
  background-color: #850000;
  outline: none;
}

button.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 1),
    0 0 0 4px #0065b1;
}

button.btn:disabled {
  background-color: #d8d8d8;
  color: #ffffff;
  cursor: not-allowed;
}

/* Image */
.login-image {
  max-width: 100%;
}

@media (min-width: 1024px) {
  .login-image {
    max-width: 555px;
  }
}

/* Footer */
.footer {
  padding-bottom: 24px;
  padding-top: 0;
}

.footer-text {
  font-family: 'mBank', 'Montserrat', 'DejaVu Sans', Verdana, sans-serif;
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
  font-weight: 550;
  color: #6e6e6e;
  margin: 0;
}

.footer-link {
  color: #0065b1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #00518f;
  text-decoration: underline;
}

.footer-link:focus {
  color: #00518f;
  outline: 2px solid #0065b1;
  outline-offset: 2px;
}

/* Form */
form {
  margin: 0;
}

input[type='hidden'] {
  display: none;
}
