@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

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

body {
  font-family: "Rubik", sans-serif;
  height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #4c63d2 0%, #2d5aa0 100%);
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
}

.left-section {
  flex: 1;
  background: linear-gradient(135deg, #4c63d2 0%, #2d5aa0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem;
  color: white;
  position: relative;
}

.logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
}

.logo::before {
  content: ""; 
  display: inline-block;
  width: 50px;      
  height: 50px;     
  margin-right: 0.5rem;
  background-image: url('../../assets/images/UIET-logo.png');
  background-size: contain;   /* scale image to fit */
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;    /* align with text */
}

.hero-text {
  max-width: 500px;
  margin-bottom: 3rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text .highlight {
  color: #ffd700;
  font-weight: 400;
}

.cloud-icon {
  width: 200px;
  height: 150px;
  position: relative;
  margin-top: 2rem;
}

.cloud-storage {
  width: 160px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  backdrop-filter: blur(10px);
}

.cloud-storage::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 10px;
  right: 10px;
  height: 25px;
  background: #ffd700;
  border-radius: 12px;
}

.right-section {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

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

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-header p {
  color: #718096;
  font-size: 0.95rem;
}

.role-selector {
  display: flex;
  background: #f7fafc;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.role-option {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
}

.role-option.active {
  background: white;
  color: #4c63d2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.role-option:hover {
  color: #4c63d2;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: #4c63d2;
  box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.1);
}

.otp-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.otp-input {
  width: 50px !important;
  height: 50px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: #4c63d2;
  box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.2);
  outline: none;
}

.otp-input.filled {
  border-color: #4c63d2;
  background: #f8faff;
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.resend-otp {
  background: none;
  border: none;
  color: #4c63d2;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.resend-otp:hover {
  color: #3a52c4;
}

.resend-otp:disabled {
  color: #a0aec0;
  cursor: not-allowed;
  text-decoration: none;
}

.otp-timer {
  font-size: 0.85rem;
  color: #a0aec0;
}

.login-button {
  width: 100%;
  padding: 1rem;
  background: #2d3748;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.login-button:hover {
  background: #1a202c;
  transform: translateY(-1px);
}

.login-button:disabled {
  background: #152848;
  color: #ffffff;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.login-button:disabled:hover {
  /* background: #718096; */
  transform: none;
  cursor: not-allowed;
}

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

  .left-section {
    min-height: 40vh;
    padding: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .cloud-icon {
    display: none;
  }

  .right-section {
    padding: 1rem;
  }
}
