@charset "UTF-8";

/* ================================================================
   KTC GROUP WORLD PORTAL — LOGIN PAGE
   Modern SaaS ERP | Navy + Teal | Inter Font
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #f0f4f8;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------- */
.login-wrapper {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* ----------------------------------------------------------------
   LEFT — BRAND PANEL
   ---------------------------------------------------------------- */
.login-brand-panel {
  width: 42%;
  background: linear-gradient(150deg, #1a2744 0%, #1c3461 60%, #0f4d8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Decorative circles */
.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: rgba(14,165,233,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(14,165,233,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.brand-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
}

.brand-logo {
  margin-bottom: 40px;
}
.brand-logo img {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.brand-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.brand-subtitle {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 44px;
}

/* Feature list */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-feature-dot {
  width: 8px;
  height: 8px;
  background: #0EA5E9;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}
.brand-feature-text {
  font-size: 13.5px;
  color: #cbd5e1;
  font-weight: 400;
}

/* Divider line */
.brand-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #0EA5E9, rgba(14,165,233,0.2));
  border-radius: 2px;
  margin: 32px 0 28px;
}

/* ----------------------------------------------------------------
   RIGHT — FORM PANEL
   ---------------------------------------------------------------- */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: #f0f4f8;
  overflow-y: auto;
}

.login-form-inner {
  width: 100%;
  max-width: 400px;
}

.login-greeting {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0EA5E9;
  margin-bottom: 8px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.login-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form card */
.login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

.login-card .form-group { margin-bottom: 18px; }
.login-card .form-group:last-of-type { margin-bottom: 0; }

.login-card label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

/* Input with icon */
.input-field-wrap {
  position: relative;
}
.input-field-wrap .field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}
.input-field-wrap .form-control {
  padding-left: 38px !important;
}

.login-card .form-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1e293b;
  height: 42px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'Inter', sans-serif;
  background: #fff;
  outline: none;
}
.login-card .form-control:focus {
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.login-card .form-control::placeholder { color: #94a3b8; }

/* Forgot password */
.forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.forgot-link {
  font-size: 12.5px;
  color: #0EA5E9;
  font-weight: 500;
  transition: color 0.15s;
}
.forgot-link:hover { color: #0284C7; }

/* Submit button */
.btn-login {
  display: block;
  width: 100%;
  background: #0EA5E9;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1px;
}
.btn-login:hover {
  background: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14,165,233,0.28);
}
.btn-login:active { transform: translateY(0); }
.btn-login .fa { margin-right: 6px; }

/* Alerts */
.login-alert {
  border-radius: 8px;
  border: none;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-alert-success { background: #d1fae5; color: #065f46; }
.login-alert-danger  { background: #fee2e2; color: #991b1b; }

/* Support footer */
.login-support {
  margin-top: 24px;
  text-align: center;
}
.login-support p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.login-support a {
  color: #475569;
  font-weight: 500;
  transition: color 0.15s;
}
.login-support a:hover { color: #0EA5E9; }
.login-support .support-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .login-brand-panel { width: 36%; padding: 40px 36px; }
  .brand-title { font-size: 24px; }
  .login-form-panel { padding: 40px 36px; }
}

@media (max-width: 640px) {
  body { overflow: auto; }
  .login-wrapper { flex-direction: column; height: auto; min-height: 100vh; }
  .login-brand-panel { width: 100%; padding: 32px 24px; min-height: auto; }
  .login-brand-panel::before, .login-brand-panel::after { display: none; }
  .brand-features { display: none; }
  .brand-divider { display: none; }
  .brand-subtitle { margin-bottom: 0; }
  .login-form-panel { padding: 32px 24px; background: #f0f4f8; }
  .login-form-inner { max-width: 100%; }
}
