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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #F7F8FA;
  color: #0B1E3F;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem;
}

.container {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

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

h1 {
  font-weight: 700;
  font-size: 1.75rem;
  color: #0B1E3F;
  margin-bottom: 0.25rem;
}

.tagline {
  color: #5A6678;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.card {
  background: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-top: 3px solid #F36C2C;
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 1px 4px rgba(11, 30, 63, 0.06);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #0B1E3F;
}

.optional {
  font-weight: 400;
  color: #5A6678;
}

textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.75rem;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #0B1E3F;
  resize: vertical;
  transition: border-color 0.15s ease;
}

textarea:focus {
  outline: none;
  border-color: #0B1E3F;
  box-shadow: 0 0 0 3px rgba(11, 30, 63, 0.08);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #0B1E3F;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #0B1E3F;
  box-shadow: 0 0 0 3px rgba(11, 30, 63, 0.08);
}

input[readonly] {
  background: #F7F8FA;
  cursor: default;
}

input[readonly]:focus {
  border-color: #DFE3EA;
  box-shadow: none;
}

select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #0B1E3F;
  background: #FFFFFF;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6678' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form-row > .form-group {
  flex: 1;
  margin-bottom: 0;
}

.input-with-toggle {
  position: relative;
}

.input-with-toggle input {
  padding-right: 4rem;
}

.input-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #5A6678;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.input-toggle:hover {
  color: #0B1E3F;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  width: 100%;
  text-decoration: none;
  text-align: center;
  margin-top: 0.5rem;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #F36C2C;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #D9541A;
}

.btn-secondary {
  background-color: #0B1E3F;
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: #0F2650;
}

.btn-compact {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  padding: 0.75rem 1.25rem;
}

.url-box {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}

.url-box input {
  flex: 1;
  min-width: 0;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E8F5EE;
  color: #1E8E4F;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.success {
  color: #1E8E4F;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.error {
  color: #B8321E;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #FDF0EE;
  border-radius: 8px;
  font-size: 0.875rem;
}

.info {
  color: #5A6678;
  font-size: 0.825rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.warning-box {
  background: #FFF7F0;
  border: 1px solid #F36C2C;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #0B1E3F;
  line-height: 1.5;
}

.destroyed-notice {
  font-size: 0.85rem;
  color: #5A6678;
  margin-bottom: 1rem;
}

.secret-display {
  width: 100%;
  min-height: 100px;
  padding: 0.875rem;
  background: #F7F8FA;
  border: 1px solid #DFE3EA;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 0.5rem;
  color: #0B1E3F;
  line-height: 1.5;
}

.countdown {
  font-size: 0.8rem;
  color: #5A6678;
  text-align: center;
  margin-top: 0.75rem;
}

.expired-content {
  text-align: center;
  padding: 1rem 0;
}

.expired-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.expired-message {
  color: #5A6678;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

footer {
  margin-top: 2rem;
  text-align: center;
  color: #5A6678;
  font-size: 0.8rem;
}

footer a {
  color: #5A6678;
  text-decoration: none;
}

footer a:hover {
  color: #F36C2C;
}

@media (max-width: 640px) {
  body {
    padding: 1.5rem 0.75rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row > .form-group {
    margin-bottom: 1rem;
  }

  .card {
    border-radius: 8px;
    padding: 1.5rem;
  }
}
