/* ABOUTME
 * Authentication page styles - sharp, high-contrast design for login/register
 */

/* Auth Container */
.auth-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
  overflow-y: auto;
}

.auth-box {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 3px solid #000;
  padding: 40px 48px;
}

.auth-box h1 {
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Beta Badge */
.beta-badge {
  display: inline-block;
  position: absolute;
  top: 0;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  vertical-align: super;
}

.auth-subtitle {
  font-size: 16px;
  text-align: center;
  opacity: 0.7;
  margin-bottom: 28px;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 2px solid #000;
  background: #fff;
}

.alert-error {
  border-color: #ff0000;
}

.alert-error .alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #ff0000;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.alert-success .alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #000;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.alert-text {
  flex: 1;
  font-size: 14px;
}

/* Form Styles */
.auth-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.forgot-link {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 200ms ease-out;
}

.forgot-link:hover {
  opacity: 1;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 2px solid #000;
  background: #fff;
  outline: none;
  transition: all 200ms ease-out;
  font-family: inherit;
}

.form-input:focus {
  border-width: 3px;
  padding: 11px 13px;
}

.form-input::placeholder {
  opacity: 0.4;
}

.form-input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ff0000;
}

.form-error {
  display: none;
  font-size: 13px;
  color: #ff0000;
  margin-top: 6px;
  font-weight: 500;
}

.form-input:invalid:not(:focus):not(:placeholder-shown) ~ .form-error {
  display: block;
}

/* Checkbox Styles */
.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  background: #fff;
  position: relative;
  transition: all 200ms ease-out;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-box {
  background: #000;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-box::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-label input[type="checkbox"]:focus ~ .checkbox-box {
  border-width: 3px;
}

.checkbox-text {
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-text a {
  color: #000;
  font-weight: 600;
}

/* Submit Button */
.btn-submit {
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: -0.3px;
}

/* Auth Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 28px 0 24px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #000;
  opacity: 0.2;
}

.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.5;
}

/* Social Auth */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #000;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 200ms ease-out;
  letter-spacing: -0.3px;
}

.btn-social:hover {
  background: #000;
  color: #fff;
}

.btn-social:hover .social-icon path {
  fill: #fff;
}

.btn-social:hover .social-icon path[fill="#4285F4"],
.btn-social:hover .social-icon path[fill="#34A853"],
.btn-social:hover .social-icon path[fill="#FBBC05"],
.btn-social:hover .social-icon path[fill="#EA4335"] {
  fill: #fff;
}

.social-icon {
  flex-shrink: 0;
}

/* Auth Switch */
.auth-switch {
  text-align: center;
  font-size: 15px;
}

.auth-switch a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #000;
  transition: all 200ms ease-out;
  padding-bottom: 1px;
}

.auth-switch a:hover {
  border-bottom-width: 3px;
  padding-bottom: 0;
}

/* Auth Footer */
.auth-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 0;
  background: #fff;
  border-top: 1px solid #000;
  opacity: 0.3;
}

.auth-footer .container {
  text-align: center;
}

.auth-footer .copyright {
  font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-container {
    padding: 16px;
  }

  .auth-box {
    padding: 32px 24px;
    border-width: 2px;
  }

  .auth-box h1 {
    font-size: 32px;
  }

  .beta-badge {
    font-size: 9px;
    padding: 2px 5px;
  }

  .auth-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .form-input {
    font-size: 16px;
    padding: 12px 14px;
  }

  .form-input:focus {
    padding: 11px 13px;
  }

  .btn-submit {
    padding: 14px 24px;
  }

  .auth-footer {
    position: relative;
    margin-top: 40px;
  }
}
