/* Landscape Login Design - Form di Atas dengan Service Icons di Bawah */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Background Overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 1;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff0000 0%, #8B0000 25%, #000000 50%, #2C0000 75%, #ff0000 100%);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: white;
}

.preloader-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff0000, #000000, #ff0000);
  background-size: 200% 200%;
  animation: pulse 2s infinite, gradientShift 2s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.preloader-logo::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid transparent;
  border-top: 3px solid #ff0000;
  border-right: 3px solid #000000;
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

.preloader-logo i {
  font-size: 3rem;
  z-index: 2;
}

.preloader-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease;
  background: linear-gradient(45deg, #ff0000, #ffffff, #ff0000);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease, gradientShift 2s ease infinite;
}

.preloader-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s both;
  color: #ffcccc;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-top: 3px solid #ff0000;
  border-right: 3px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating Live Chat Icon */
.floating-chat-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

.floating-chat-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.floating-chat-icon a::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;
}

.floating-chat-icon a:hover::before {
  left: 100%;
}

.floating-chat-icon a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(225, 48, 108, 0.6);
  background: linear-gradient(45deg, #ffad5a 0%,#ff8b60 25%,#ff4d6e 50%,#e63373 75%,#d42a8a 100%);
}

.floating-chat-icon a i {
  font-size: 24px;
  z-index: 2;
  position: relative;
}

/* Pulse animation for notification effect */
.floating-chat-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(225, 48, 108, 0.3);
  animation: pulse-ring 2s infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-chat-icon {
    top: 15px;
    right: 15px;
  }
  
  .floating-chat-icon a {
    width: 50px;
    height: 50px;
  }
  
  .floating-chat-icon a i {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .floating-chat-icon {
    top: 10px;
    right: 10px;
  }
  
  .floating-chat-icon a {
    width: 45px;
    height: 45px;
  }
  
  .floating-chat-icon a i {
    font-size: 18px;
  }
}

/* Main Container */
.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent;
}

/* Login Form */
.login-form {
  width: 100%;
  background: transparent;
  padding: 40px 30px;
  margin-bottom: 30px;
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 30px;
  background: transparent;
  padding: 20px;
  border-radius: 15px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.site-title {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin: 0;
}

.login-title {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 15px;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(51, 51, 51, 0.6);
}

.form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-size: 1.1rem;
  z-index: 2;
}


.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

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

.login-btn.loading {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  cursor: not-allowed;
}


/* Service Icons Grid */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 800px;
}

.service-item {
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 1;
  min-width: 80px;
  max-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-item:hover {
  transform: translateY(-3px) scale(1.1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
  background: linear-gradient(135deg, #dc3545, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.2);
  background: linear-gradient(135deg, #ff6b6b, #2c2c2c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.service-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-top: 5px;
}

/* Error Message */
.error-message {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(220, 53, 69, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.error-message i {
  font-size: 1.1rem;
}

/* RT Login Section */
.rt-login-section {
  margin-top: 20px;
  text-align: center;
  padding: 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.rt-login-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.rt-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.rt-login-btn i {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.rt-login-btn span {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.rt-login-btn small {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    max-width: 600px;
    padding: 15px;
  }
  
  .login-form {
    padding: 30px 25px;
  }
  
  .service-grid {
    max-width: 550px;
    gap: 15px;
  }
  
  .service-item {
    padding: 15px;
    min-width: 70px;
    max-width: 90px;
  }
  
  .service-icon {
    font-size: 2rem;
  }
  
  .service-text {
    font-size: 0.6rem;
  }
  
  .logo {
    width: 70px;
    height: 70px;
  }
  
  .site-title {
    font-size: 1.5rem;
  }
  
  .login-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    max-width: 450px;
    padding: 10px;
  }
  
  .login-form {
    padding: 25px 20px;
  }
  
  .service-grid {
    max-width: 400px;
    gap: 12px;
  }
  
  .service-item {
    padding: 12px;
    min-width: 60px;
    max-width: 80px;
  }
  
  .service-icon {
    font-size: 1.8rem;
  }
  
  .service-text {
    font-size: 0.5rem;
  }
  
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .site-title {
    font-size: 1.3rem;
  }
  
  .login-title {
    font-size: 1.6rem;
  }
}
