/*--
Modern Split Screen Login Design - SIMETRIK
--*/

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}

/* Split Container */
.split-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Left Side - Form */
.split-left {
  flex: 1;
  background: #ffffff;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 187, 106, 0.03) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow-y: auto;
}

.split-left::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(102, 187, 106, 0.05) 100%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  z-index: 0;
}

.split-left::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0%, rgba(102, 187, 106, 0.03) 100%);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  z-index: 0;
}

.split-left.loading {
  opacity: 0.6;
  pointer-events: none;
}

.login-form-wrapper {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

/* Decorative Elements */
.login-form-wrapper::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(76, 175, 80, 0.04);
  border-radius: 20px;
  top: -20px;
  right: -20px;
  transform: rotate(15deg);
  z-index: -1;
}

.login-form-wrapper::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(102, 187, 106, 0.04);
  border-radius: 15px;
  bottom: 100px;
  left: -30px;
  transform: rotate(-10deg);
  z-index: -1;
}

/* Brand Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.brand-logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  line-height: 1;
  margin: 0;
}

.brand-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
}

/* Welcome Text */
.welcome-text {
  margin-bottom: 35px;
  position: relative;
}

.welcome-text::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 2px;
  top: -15px;
  left: 0;
}

.welcome-text h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.welcome-text p {
  font-size: 15px;
  color: #6b7280;
  font-weight: 400;
}

/* Alert Messages */
.alert-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  border-left: 3px solid #dc2626;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-message i {
  font-size: 16px;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  transition: all 0.3s ease;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 2;
}

.form-control {
  width: 100%;
  padding: 14px 45px 14px 45px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background: #f9fafb;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: #4caf50;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-control:focus ~ .input-icon {
  color: #4caf50;
}

.form-control::placeholder {
  color: #9ca3af;
}

/* Toggle Password Icon */
.toggle-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 2;
}

.toggle-icon:hover {
  color: #4caf50;
}

/* Input States */
.input-wrapper.input-fail .form-control {
  border-color: #dc2626;
  background: #fef2f2;
}

.input-wrapper.input-fail .input-icon {
  color: #dc2626;
}

.input-wrapper.input-success .form-control {
  border-color: #10b981;
  background: #f0fdf4;
}

.input-wrapper.input-success .input-icon {
  color: #10b981;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 28px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4caf50;
}

.checkbox-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary i {
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

/* Back to Login */
.back-to-login {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.back-link:hover {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

.back-link i {
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-link:hover i {
  transform: translateX(-3px);
}

/* Right Side - Illustration */
.split-right {
  flex: 1;
  background-image: url(/desain/Login/images/gedung_RSCM.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.split-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 20, 40, 0.7);
  z-index: 0;
}

.illustration-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}

.illustration-content {
  position: relative;
}

/* Main Visual */
.main-visual {
  text-align: center;
  padding: 60px 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
}

.hospital-icon-large {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hospital-icon-large i {
  font-size: 75px;
  color: #ffffff;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  }
}

.main-visual h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.main-visual p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Loader */
.loader {
  position: fixed;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .split-right {
    padding: 40px;
  }
  
  .main-visual {
    padding: 50px 40px;
  }
  
  .main-visual h2 {
    font-size: 24px;
  }
  
  .hospital-icon-large {
    width: 120px;
    height: 120px;
  }
  
  .hospital-icon-large i {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
  
  .split-left,
  .split-right {
    flex: none;
    width: 100%;
  }
  
  .split-left {
    min-height: 100vh;
    padding: 30px 20px;
  }
  
  .split-right {
    display: none;
  }
  
  .welcome-text h1 {
    font-size: 28px;
  }
  
  .loader {
    left: 50%;
  }
}

@media (max-width: 480px) {
  .split-left {
    padding: 20px 16px;
  }
  
  .login-form-wrapper {
    max-width: 100%;
  }
  
  .brand-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    gap: 16px;
  }
  
  .brand-logo {
    width: 55px;
    height: 55px;
  }
  
  .brand-name {
    font-size: 22px;
  }
  
  .brand-subtitle {
    font-size: 11px;
  }
  
  .welcome-text {
    margin-bottom: 28px;
  }
  
  .welcome-text h1 {
    font-size: 24px;
  }
  
  .welcome-text p {
    font-size: 14px;
  }
  
  .form-control {
    padding: 12px 40px 12px 40px;
    font-size: 14px;
  }
  
  .btn-primary {
    padding: 14px 20px;
    font-size: 15px;
  }
}
