/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Main Container */
.auth-cover-container {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #056835 0%, #08a355 50%, #0bc966 100%);
}

/* Left Section - Login Form */
.auth-cover-left {
  width: 550px;
  max-width: 550px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  z-index: 2;
}

.auth-form-container {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.98);
  padding: 48px 50px;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Right Section - Illustration */
.auth-cover-right {
  width: calc(100% - 550px);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #056835 0%, #08a355 50%, #0bc966 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-illustration {
  width: 50%;
  height: 50%;
  object-fit: contain;
  object-position: center;
  position: relative;
  display: block;
}

/* University Info Overlay */
.auth-overlay-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  color: white;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.auth-overlay-info h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-overlay-info p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.auth-overlay-contact {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 40px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    transparent 100%
  );
  color: white;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  margin-right: 10px;
  margin-top: 2px;
  color: #08a355;
  font-size: 14px;
}

/* Logo */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo img {
  height: 70px;
  width: auto;
  max-width: 100%;
}

/* Header */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 0;
}

/* Form Styles */
.auth-form-group {
  margin-bottom: 24px;
}

.auth-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.auth-form-label .required {
  color: #dc3545;
  margin-left: 2px;
}

.auth-form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 6px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #08a355;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(8, 163, 85, 0.15);
}

.auth-form-control::placeholder {
  color: #adb5bd;
  opacity: 1;
}

.auth-form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #dc3545;
}

/* Button */
.auth-btn-login {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: #08a355;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-btn-login:hover {
  background-color: #067c42;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 163, 85, 0.3);
}

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

.auth-btn-login:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(8, 163, 85, 0.25);
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.auth-footer p {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 0;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .auth-cover-left {
    width: 480px;
    max-width: 480px;
    padding: 0;
  }

  .auth-cover-right {
    width: calc(100% - 480px);
  }

  .auth-illustration {
    width: 60%;
    height: 60%;
  }

  .auth-form-container {
    padding: 40px 40px;
  }

  .auth-overlay-info h2 {
    font-size: 24px;
  }

  .auth-overlay-info p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .auth-cover-container {
    flex-direction: column;
  }

  .auth-cover-left {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 0;
    order: 1;
  }

  .auth-cover-right {
    width: 100%;
    min-height: 400px;
    order: 2;
  }

  .auth-illustration {
    width: 70%;
    height: 70%;
  }

  .auth-form-container {
    max-width: 100%;
    padding: 40px 30px;
    min-height: auto;
    border-radius: 0;
  }

  .auth-overlay-info {
    padding: 30px 20px;
  }

  .auth-overlay-info h2 {
    font-size: 22px;
  }

  .auth-overlay-info p {
    font-size: 14px;
  }

  .auth-overlay-contact {
    padding: 20px;
  }

  .contact-item {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .auth-cover-left {
    padding: 0;
  }

  .auth-illustration {
    width: 80%;
    height: 60%;
  }

  .auth-form-container {
    padding: 32px 24px;
    border-radius: 0;
  }

  .auth-logo img {
    height: 55px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-header p {
    font-size: 13px;
  }

  .auth-overlay-info h2 {
    font-size: 20px;
  }

  .auth-overlay-info p {
    font-size: 13px;
  }
}

/* Alert Styles */
.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Loading State */
.auth-btn-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Performance Optimization - will-change for animated elements */
.auth-form-container,
.auth-overlay-info,
.auth-overlay-contact {
  will-change: transform, opacity;
}
