/* ─────────────────────────────────────────
   RAFZ TZY – Deploy Website | Light Clean 3D
   public/css/style.css
   © RAFZ TZY 2026
───────────────────────────────────────── */

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  --bg-main:       #f0f4f8;
  --card-bg:       #ffffff;
  --cyan-primary:  #00b4d8;
  --cyan-light:    #e6f7ff;
  --cyan-glow:     rgba(0,180,216,0.15);
  --text-main:     #1e293b;
  --text-muted:    #64748b;
  --border-light:  #e2e8f0;
  
  /* 3D Button Specs (Black & Orange Accent) */
  --btn-black:     #141419;
  --btn-orange:    #ff6b00;
  --btn-orange-h:  #ff8533;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-main);
}

body {
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  color: var(--text-main);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg-main) 100%);
}

/* ─── Pembatas Kartu Responsif (Menyesuaikan Ukuran Device) ─── */
.card {
  position: relative;
  width: 100%;
  max-width: 460px; /* Lebar maksimal ideal di PC/Tablet */
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 10px 15px -3px rgba(0,0,0,0.02),
    0 20px 25px -5px rgba(0,0,0,0.05),
    0 30px 60px -15px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  animation: cardIn 0.5s cubic-bezier(.175, .885, .32, 1.15) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ─── Banner Video 3:2 ─── */
.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #000;
  overflow: hidden;
}

.banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
}

/* ─── Form Body ─── */
.body { 
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Input Container Style ─── */
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.field:focus-within {
  border-color: var(--cyan-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.field-icon { 
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.field:focus-within .field-icon {
  color: var(--cyan-primary);
}

.field input, .field label {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-main);
}

.field input::placeholder { 
  color: #a0aec0; 
}

.field input[type="file"] { 
  display: none; 
}

.file-label { 
  display: flex; 
  align-items: center; 
  width: 100%;
  cursor: pointer;
}

.file-label span { 
  color: var(--text-muted); 
}

.file-label.chosen span { 
  color: var(--text-main); 
  font-weight: 600; 
}

/* ─── Captcha Container ─── */
.captcha-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 4px 0;
}

/* ─── Tombol Utama 3D Matte Black & Orange ─── */
.btn-deploy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: var(--btn-black);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-bottom: 5px solid var(--btn-orange);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

.btn-deploy:hover:not(:disabled) {
  border-bottom-width: 6px;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.18);
  color: var(--btn-orange-h);
}

.btn-deploy:active:not(:disabled) {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-deploy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-bottom-color: #555;
}

.btn-text-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-svg-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ─── Result Box ─── */
#result { 
  width: 100%;
}

.result-inner {
  border-radius: 14px;
  padding: 14px;
  font-size: 13.5px;
  text-align: center;
  font-weight: 600;
}

.result-inner.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.result-inner.err {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.result-inner.info {
  background: var(--cyan-light);
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.result-inner a {
  color: var(--cyan-primary);
  text-decoration: underline;
  word-break: break-all;
}

/* ─── Spinner ─── */
.spinner {
  width: 18px; 
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: var(--btn-orange);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.btn-deploy.loading .spinner { 
  display: block; 
}

.btn-deploy.loading .btn-svg-icon {
  display: none;
}

@keyframes spin { 
  to { transform: rotate(360deg); } 
}

/* ─── Footer ─── */
.foot-strip {
  padding: 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 700;
}
