/* ==========================================================================
   AZM SSO LOGIN - STYLESHEET
   PT ALDZAMA (Official Corporate Identity)
   Focused, Clean, Minimalist Enterprise Sign-In
   ========================================================================== */

:root {
  --azm-red: #d32027;
  --azm-red-hover: #b71c1c;
  --azm-blue: #2d4999;
  --azm-blue-hover: #1e3a8a;
  --azm-navy-bg: #0c182b;
  --azm-card-border: #e2e8f0;
}

body.login-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--azm-navy-bg);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(45, 73, 153, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(211, 32, 39, 0.18) 0%, transparent 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Auth Outer Container */
#view-auth {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Centered Clean Card */
.azm-simple-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 18px;
  padding: 38px 34px 34px 34px;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Top Accent Bar: Aldzama Blue & Red */
.azm-simple-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--azm-blue) 0%, var(--azm-blue) 75%, var(--azm-red) 75%, var(--azm-red) 100%);
}

/* Logo & System Header */
.azm-card-header {
  text-align: center;
  margin-bottom: 26px;
}

.azm-card-logo {
  height: 50px;
  max-width: 240px;
  width: auto;
  margin: 0 auto 10px auto;
  display: block;
  object-fit: contain;
}

.azm-card-subtitle {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Form Styles */
.azm-field-group {
  margin-bottom: 18px;
}

.azm-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.azm-input-wrapper {
  position: relative;
}

.azm-field-input {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.azm-field-input:focus {
  background: #ffffff;
  border-color: var(--azm-blue);
  box-shadow: 0 0 0 3px rgba(45, 73, 153, 0.15);
}

.azm-field-input::placeholder {
  color: #94a3b8;
}

/* Password Toggle */
.azm-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.azm-toggle-btn:hover {
  color: #0f172a;
}

/* Meta Row */
.azm-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.8rem;
}

.azm-remember-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  cursor: pointer;
}

.azm-remember-checkbox input {
  cursor: pointer;
}

.azm-link-forgot {
  color: var(--azm-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.azm-link-forgot:hover {
  color: var(--azm-red);
  text-decoration: underline;
}

/* Primary Button */
.btn-keycloak-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--azm-blue) 0%, #1e3a8a 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(45, 73, 153, 0.35);
  transition: all 0.2s ease;
}

.btn-keycloak-submit:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--azm-red) 100%);
  box-shadow: 0 6px 18px rgba(211, 32, 39, 0.35);
  transform: translateY(-1px);
}

.btn-keycloak-submit:active {
  transform: translateY(0);
}

.btn-keycloak-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 480px) {
  .azm-simple-card {
    padding: 28px 20px 24px 20px;
    border-radius: 14px;
  }
}
