/* css/auth.css - 로그인/회원가입/인증 UI 스타일 */

.modal-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-auth-overlay.show {
  opacity: 1;
}

.modal-auth-dialog {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.modal-auth-overlay.show .modal-auth-dialog {
  transform: scale(1);
}

.modal-auth-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.modal-auth-logo {
  font-size: 32px;
  margin-bottom: 8px;
}

.modal-auth-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #222;
  text-align: center;
}

.modal-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #bbb;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
}

.modal-auth-close:hover {
  background: #f5f5f5;
  color: #555;
}

.modal-auth-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.auth-error {
  background: #fff3f3;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 12px;
}

.auth-field {
  margin-bottom: 12px;
}

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.auth-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #0ac8a0;
}

.auth-input::placeholder {
  color: #bbb;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.auth-divider span {
  padding: 0 12px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 16px;
}

.auth-switch a {
  color: #0ac8a0;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.modal-auth-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.auth-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn-secondary {
  background: #f5f5f5;
  color: #555;
}

.auth-btn-secondary:hover {
  background: #eee;
}

.auth-btn-primary {
  background: #0ac8a0;
  color: #fff;
}

.auth-btn-primary:hover {
  background: #08b092;
}

/* Plan Box */
.auth-plan-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  text-align: center;
}

.auth-plan-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-plan-price {
  font-size: 22px;
  font-weight: 800;
}

.auth-plan-desc {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Preview Banner */
#preview-banner {
  display: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-shrink: 0;
}

#preview-banner .preview-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

#preview-banner .preview-info span {
  opacity: 0.9;
}

#preview-banner .preview-count {
  font-size: 11px;
  opacity: 0.75;
}

.preview-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  font-weight: 600;
}

.preview-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Auth Topbar */
#auth-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.auth-user-info {
  font-size: 13px;
  color: #fff;
  opacity: 0.85;
  white-space: nowrap;
}

.auth-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #4caf50;
  color: #fff;
}

.auth-badge:not(.paid) {
  background: rgba(255, 255, 255, 0.2);
}

.auth-usage {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* Auth Topbar Buttons */
.auth-topbar-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
}

.auth-topbar-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.auth-topbar-btn-primary {
  background: #0ac8a0;
  border-color: #0ac8a0;
}

.auth-topbar-btn-primary:hover {
  background: #08b092;
}
