/* assets/css/main.css for /desktop document root */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #15171a;
  color: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

.desktop-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #111315;
  border-bottom: 1px solid #2c2f33;
}

.top-bar .logo {
  font-weight: 700;
  font-size: 18px;
}

.top-bar .hint {
  font-size: 12px;
  color: #b0bec5;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.inline-form input[type="text"],
.inline-form input[type="password"] {
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #455a64;
  background: #263238;
  color: #eceff1;
  font-size: 12px;
}

.btn.small {
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  background: #1e88e5;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.btn.small:hover {
  background: #1565c0;
}

.user-label {
  font-size: 13px;
  color: #cfd8dc;
}

.login-error {
  padding: 6px 16px;
  background: #b71c1c;
  color: #fff;
  font-size: 12px;
}

.login-success {
  padding: 6px 16px;
  background: #2e7d32;
  color: #fff;
  font-size: 12px;
}

.desktop-main {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* 아이콘 영역 (전체 폭 사용) */

.icon-area {
  flex: 1;
  padding: 18px 22px;
  background: radial-gradient(circle at top left, #263238 0, #15171a 40%, #000 100%);
  overflow-y: auto;
}

.icon-section {
  margin-bottom: 28px;
}

.register-form {
  max-width: 360px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.register-row {
  margin-bottom: 8px;
}

.register-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.register-row input[type="email"],
.register-row input[type="password"],
.register-row input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #455a64;
  background: #263238;
  color: #eceff1;
  font-size: 12px;
}

.icon-section h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #eceff1;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.icon-tile {
  background: rgba(18, 20, 24, 0.9);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
    background 0.1s ease-out;
}

.icon-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  background: rgba(27, 30, 35, 0.96);
}

.icon-tile img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.icon-label-main {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.icon-label-sub {
  font-size: 11px;
  color: #b0bec5;
}

/* 인증 모달 */

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-modal {
  background: #1e2127;
  border-radius: 10px;
  padding: 16px 18px;
  min-width: 320px;
  max-width: 380px;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.auth-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #cfd8dc;
  font-size: 18px;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.auth-tab {
  flex: 1;
  padding: 6px 0;
  border-radius: 6px;
  border: none;
  background: #263238;
  color: #cfd8dc;
  font-size: 13px;
  cursor: pointer;
}

.auth-tab.active {
  background: #1e88e5;
  color: #fff;
}

.auth-form {
  margin-top: 4px;
}

.auth-row {
  margin-bottom: 8px;
}

.auth-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.auth-row input[type="email"],
.auth-row input[type="password"],
.auth-row input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #455a64;
  background: #263238;
  color: #eceff1;
  font-size: 12px;
}
