* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1d1d1f;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", sans-serif;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 20px 30px;
}

.apple-icon {
  width: 16px;
  filter: invert(100%);
  margin-right: 6px;
}

.icloud-label {
  font-size: 16px;
  font-weight: 500;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px);
}

.login-box {
  background: #161617;
  padding: 40px;
  flex-direction: column;
  display: flex;
  border-radius: 20px;
  align-items: center;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.spinner-ring {
  width: 70px;
  height: 70px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff5e3a, #ff9500, #ffcc00,
    #4cd964, #5ac8fa, #0579ff,
    #5856d6, #ff2d55, #ff5e3a
  );
  animation: spin 2s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner-ring .logo {
  width: 22px;
  height: 22px;
  filter: invert(100%);
  animation: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

h1 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
}

.input-wrapper {
  display: flex;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  overflow: hidden;
  background: #1c1c1e;
  margin-bottom: 20px;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.input-wrapper .submit-btn {
  background: none;
  border: none;
  color: #007aff;
  font-size: 20px;
  padding: 0 16px;
  cursor: pointer;
}

.keep-session {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 30px;
  justify-content: center;
}

.keep-session input {
  margin-right: 8px;
}

.links {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.links a {
  color: #0a84ff;
  text-decoration: none;
}

.apple-logo-svg path[fill="var(--theme-color-systemBlack)"] {
  fill: #fff !important;
}
.apple-logo-svg svg {
  width: 160px;
  height: 160px;
}
.apple-login-text {
  font-size: 32px;
  color: #FFFFFFFA;
  text-align: center;
  line-height: 1.2;
  max-width: 252px;
  height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.apple-login-text strong {
  font-weight: 600;
}

.login-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.top-logo {
  position: absolute;
  top: 30px;
  left: 40px;
  z-index: 10;
}

.apple-icloud-logo {
  width: 82px;
  height: 31px;
  fill: white;
}
.input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* se ajusta al contenedor padre */
  max-width: 340px; /* evita que se alargue demasiado */
  height: 56px;
  background-color: #1d1d1f;
  border-radius: 12px;
  padding: 0 12px;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.input-wrapper input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  padding: 0 10px;
  outline: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.submit-btn {
  background-color: #0071e3;
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #005bb5;
}
.footer {
  margin-top: 60px;
  text-align: center;
  font-size: 12px;
  color: #888;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links li a {
  color: #888;
  text-decoration: none;
}

.footer-links li a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
}

.hidden {
  display: none;
}

.user-id-label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #888;
  font-family: system-ui, sans-serif;
}
