/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

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

body {
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

.rg-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef2f5;
  background-image:
    linear-gradient(rgba(21, 82, 101, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 82, 101, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 24px;
}

.rg-card {
  background: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 560px;
  padding: 64px 68px;
  box-shadow:
    0 2px 4px rgba(21, 82, 101, 0.04),
    0 12px 32px rgba(21, 82, 101, 0.12),
    0 0 0 1px rgba(21, 82, 101, 0.06);
  text-align: center;
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rg-logo-wrap {
  margin-bottom: 32px;
}

.rg-logo {
  max-height: 100px;
  max-width: 300px;
  width: 100%;
  object-fit: contain;
}

.rg-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #155265 30%,
    #155265 70%,
    transparent
  );
  opacity: 0.15;
  border-radius: 2px;
  margin-bottom: 36px;
}

.rg-title {
  font-family: "DM Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0e3542;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.rg-subtitle {
  font-size: 16px;
  color: #7a97a1;
  margin-bottom: 40px;
  line-height: 1.6;
}

.rg-regions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rg-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f7fafb;
  border: 1.5px solid #d6e4e8;
  border-radius: 14px;
  text-decoration: none;
  color: #0e3542;
  font-weight: 500;
  font-size: 17px;
  transition: all 0.2s ease;
}

.rg-btn:hover {
  background: #155265;
  border-color: #155265;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 82, 101, 0.28);
}

.rg-flag {
  font-size: 26px;
  line-height: 1;
}
.rg-label {
  flex: 1;
  text-align: left;
}

.rg-arrow {
  font-size: 18px;
  opacity: 0.4;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.rg-btn:hover .rg-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ── Tablet (max 768px) ── */
@media (max-width: 768px) {
  .rg-card {
    padding: 48px 40px;
    border-radius: 20px;
    max-width: 480px;
  }

  .rg-logo {
    max-height: 80px;
    max-width: 240px;
  }
  .rg-title {
    font-size: 26px;
  }
  .rg-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }
  .rg-btn {
    padding: 17px 20px;
    font-size: 15px;
  }
  .rg-flag {
    font-size: 22px;
  }
}

/* ── Mobile (max 480px) ── */
@media (max-width: 480px) {
  .rg-wrapper {
    padding: 16px;
    align-items: flex-start;
    padding-top: 60px;
  }

  .rg-card {
    padding: 36px 24px;
    border-radius: 16px;
    max-width: 100%;
  }

  .rg-logo {
    max-height: 64px;
    max-width: 180px;
  }
  .rg-title {
    font-size: 22px;
  }
  .rg-subtitle {
    font-size: 13px;
    margin-bottom: 28px;
  }
  .rg-btn {
    padding: 15px 16px;
    font-size: 14px;
    gap: 12px;
  }
  .rg-flag {
    font-size: 20px;
  }
  .rg-arrow {
    display: none;
  }
}
