/* ============================================================
   Login Form
   ============================================================ */
.lmc-auth-wrapper {
  max-width: 520px;
  margin: 80px auto;
  padding: 0 20px;
}

.lmc-auth-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
}

.lmc-auth-title span {
  background: #8bc937;
  color: #fff;
  padding: 4px 10px;
}

.lmc-auth-desc {
  font-size: 16px;
  color: #444;
  margin-bottom: 28px;
}

.lmc-auth-form input[type="email"] {
  max-width: 100%;
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.lmc-auth-form input:focus {
  outline: none;
  border-color: #8bc937;
}

.lmc-auth-form button {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  background: #63c75a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
}

.lmc-auth-form button:hover {
  background: #56b84f;
}

.lmc-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 15px;
}

.lmc-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  border: 1px solid #ddd;
}

.lmc-remember label {
  cursor: pointer;
  user-select: none;
}

.lmc-auth-note {
  font-size: 13px;
  color: #777;
  margin-top: 12px;
}

/* === Captcha Layout === */

.lmc-captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Label (pertanyaan) */
.lmc-captcha-label {
  min-width: 80px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* Input */
.lmc-captcha-wrapper input {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.lmc-captcha-wrapper input:focus {
  outline: none;
  border-color: #8bc937;
}

/* === Mobile Adjustment === */
@media (max-width: 480px) {
  .lmc-captcha-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .lmc-captcha-label {
    min-width: auto;
  }
}

/* ============================================================
   Member Dashboard
   ============================================================ */

.lmc-dashboard {
  margin: 0 auto;
  padding: 1rem 0 0;
}

.lmc-greeting {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  margin-bottom: 4px;
}

.lmc-greeting-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 2rem;
}

/* Account card */
.lmc-account-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lmc-account-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lmc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f2f2;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  flex-shrink: 0;
}

.lmc-account-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lmc-account-email {
  font-size: 13px;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lmc-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  background: none;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.lmc-logout-btn:hover {
  background: #f7f7f7;
  color: #111;
}

/* Section label */
.lmc-section-label {
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

/* Product cards */
.lmc-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lmc-product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.lmc-product-card:hover {
  border-color: #c8c8c8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.lmc-product-card--no-link {
  cursor: default;
}

.lmc-product-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lmc-product-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f7f7f7;
  border: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #888;
}

.lmc-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.lmc-product-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.lmc-product-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lmc-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  background: #edfbf3;
  color: #1a7a42;
}

.lmc-arrow {
  font-size: 20px;
  color: #ccc;
  line-height: 1;
}

/* Empty state */
.lmc-empty-state {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.lmc-empty-state p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.lmc-empty-sub {
  font-size: 13px;
  color: #999;
  margin-top: 6px !important;
}

/* Divider + support */
.lmc-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2rem 0 1.25rem;
}

.lmc-support-text {
  font-size: 12px;
  color: #bbb;
  text-align: center;
}

.lmc-support-link {
  color: #999;
  text-decoration: none;
}

.lmc-support-link:hover {
  color: #555;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
  .lmc-dashboard { padding: 1.25rem 0 2rem; }
  .lmc-greeting { font-size: 18px; }
  .lmc-account-card { flex-wrap: wrap; gap: 12px; }
  .lmc-account-left { min-width: 0; flex: 1; }
  .lmc-logout-btn { width: 100%; justify-content: center; }
  .lmc-product-card { padding: 1rem; }
}

/* ============================================================
   Thank-you page
   ============================================================ */

.lmc-thankyou {
  max-width: 420px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 1rem;
}

.lmc-thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #edfbf3;
  color: #1a7a42;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.lmc-thankyou-title {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.lmc-thankyou-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}

/* Dot spinner */
.lmc-thankyou-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.lmc-thankyou-spinner span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a7a42;
  animation: lmc-bounce 1.2s infinite ease-in-out;
}

.lmc-thankyou-spinner span:nth-child(2) { animation-delay: 0.2s; }
.lmc-thankyou-spinner span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lmc-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

.lmc-thankyou-fallback-msg {
  font-size: 13px;
  color: #888;
  margin-bottom: 1rem;
}

.lmc-ty-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}

/* ============================================================
   Product Files
   ============================================================ */

.lmc-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Shared item base */
.lmc-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.lmc-file-item:hover {
  border-color: #c8c8c8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Left section: icon + text */
.lmc-file-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lmc-file-icon-wrap {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f7f7f7;
  border: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.lmc-file-icon-wrap svg {
  width: 17px;
  height: 17px;
}

.lmc-file-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lmc-file-type {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Action button (right side) */
.lmc-file-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

a.lmc-file-item:hover .lmc-file-action {
  background: #ebebeb;
}

/* Video item */
.lmc-file-video {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.lmc-video-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.lmc-video-label svg {
  width: 17px;
  height: 17px;
  color: #888;
  flex-shrink: 0;
}

.lmc-video-embed {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* Mobile */
@media (max-width: 480px) {
  .lmc-file-item { padding: 12px; }
  .lmc-file-action { padding: 5px 10px; font-size: 12px; }
  .lmc-file-name { font-size: 13px; }
}
