* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html,
body {
  min-height: 100vh;
  height: auto;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  height: auto;
  padding: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

/* Mobile background */
@media (max-width: 768px) {
  body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px 15px;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    align-items: flex-start;
    padding-top: 80px;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  body::before {
    background: rgba(0, 0, 0, 0.4);
  }
}

.ipca-logo {
  position: absolute;
  top: 30px;
  right: 60px;
  z-index: 20;
  width: 80px;
  height: auto;
}

@media (max-width: 768px) {
  .ipca-logo {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 60px;
    z-index: 100;
  }
}

.suitglip-logo {
  width: 180px;
  height: auto;
  align-items: center;
  align-self: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .suitglip-logo {
    width: 140px;
  }
}

.login-card {
  display: flex;
  width: 900px;
  max-width: 100%;
  min-height: 500px;
  height: auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border: 3px solid #1b3b6b;
}

@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    min-height: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 15px;
    border-width: 2px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .login-card {
    border-radius: 12px;
    border-width: 2px;
  }
}

.left-panel {
  flex: 1;
  background: linear-gradient(to bottom right, #bad9ff, #e5effc);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #000000;
  text-align: center;
  position: relative;
  min-height: 300px;
}

@media (max-width: 768px) {
  .left-panel {
    padding: 30px 20px;
    min-height: 250px;
    border-bottom: 2px solid #1b3b6b;
  }
}

@media (max-width: 480px) {
  .left-panel {
    padding: 25px 15px;
    min-height: 200px;
  }
}

.left-panel h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #1b3b6b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .left-panel h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .left-panel h1 {
    font-size: 1.8rem;
  }
}

.left-panel .sub-heading {
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  background: #1b3b6b;
  display: inline-block;
  padding: 5px 25px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .left-panel .sub-heading {
    font-size: 1rem;
    padding: 4px 20px;
  }
}

.left-panel p {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 260px;
  margin: 10px auto 0;
  line-height: 1.5;
  color: #000000;
}

@media (max-width: 768px) {
  .left-panel p {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

.left-panel .date-info {
  margin-top: 25px;
  font-weight: 700;
  font-size: 1rem;
  border-top: 2px solid rgba(0, 0, 0, 0.15);
  padding-top: 15px;
  font-family: "Roboto", sans-serif;
}

@media (max-width: 768px) {
  .left-panel .date-info {
    margin-top: 15px;
    font-size: 0.9rem;
    padding-top: 12px;
  }
}

.right-panel {
  flex: 1.2;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

@media (max-width: 768px) {
  .right-panel {
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  .right-panel {
    padding: 25px 20px;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .form-header {
    margin-bottom: 20px;
  }
}

.form-header h2 {
  font-family: "Roboto", sans-serif;
  color: #1b3b6b;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .form-header h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .form-header h2 {
    font-size: 1.4rem;
  }
}

.form-header p {
  font-family: "Roboto", sans-serif;
  color: #666;
  font-size: 0.85rem;
  font-weight: 400;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .input-group {
    margin-bottom: 20px;
  }
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #1b3b6b;
  font-size: 0.9rem;
}

.input-group input {
  font-family: "Roboto", sans-serif;
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #eb5e28;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  font-weight: 400;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .input-group input {
    padding: 11px 15px 11px 40px;
    font-size: 0.85rem;
  }
}

.input-group input:focus {
  box-shadow: 0 0 0 3px rgba(235, 94, 40, 0.2);
  border-color: #eb5e28;
}

.input-group input.is-valid {
  border-color: #28a745;
}

.input-group input.is-invalid {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

.login-btn {
  font-family: "Roboto", sans-serif;
  width: 100%;
  padding: 12px;
  background-color: #1b3b6b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  border-bottom: 4px solid #eb5e28;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .login-btn {
    padding: 11px;
    font-size: 0.9rem;
  }
}

.login-btn:hover:not(:disabled) {
  background-color: #142a4d;
  transform: translateY(-2px);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.message-container {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  display: none;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .message-container {
    font-size: 0.85rem;
    padding: 8px;
  }
}

.message-container.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-container.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Ensure smooth scrolling on all devices */
@media (max-width: 768px) {
  html {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 15px;
    min-height: 100vh;
    height: auto;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .left-panel h1 {
    font-size: 1.5rem;
  }

  .right-panel {
    padding: 20px 15px;
  }

  .input-group input {
    padding: 10px 15px 10px 35px;
    font-size: 0.8rem;
  }

  .login-btn {
    padding: 10px;
    font-size: 0.85rem;
  }
}

/* Landscape mode fix */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    align-items: center;
    padding: 30px 20px;
  }

  .login-card {
    flex-direction: row;
    max-width: 90%;
    min-height: 400px;
  }

  .left-panel {
    border-bottom: none;
    border-right: 2px solid #1b3b6b;
    min-height: 100%;
  }

  .ipca-logo {
    position: fixed;
    top: 10px;
    right: 15px;
    width: 50px;
  }
}

.webinar-body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-image: url("assets/img/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow-y: auto;
  padding-top: 100px;
}

.webinar-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.ipca-logo {
  position: absolute;
  top: 30px;
  right: 60px;
  z-index: 20;
  width: 80px;
  height: auto;
}

.logout-btn {
  position: absolute;
  top: 30px;
  left: 60px;
  z-index: 20;
  background: rgba(255, 59, 48, 0.85);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(255, 59, 48, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.logout-btn:hover {
  background: #ff3b30;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 59, 48, 0.5);
}

.logout-btn i {
  font-size: 1.1rem;
}

.container {
  position: relative;
  z-index: 10;
  backdrop-filter: blur(8px);
  padding: 0px;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  border: 3px solid #1b3b6b;
  margin-top: 0;
}

.container iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 16px;
  display: block;
}

@media (max-width: 768px) {
  .webinar-body {
    padding-top: 80px;
    align-items: flex-start;
  }

  .ipca-logo {
    width: 60px;
    top: 15px;
    right: 15px;
  }

  .logout-btn {
    top: 15px;
    left: 15px;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .container {
    padding: 12px;
    width: 95%;
    margin-top: 10px;
  }

  .container iframe {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .webinar-body {
    padding-top: 75px;
    align-items: flex-start;
    min-height: 100vh;
    height: auto;
  }

  .logout-btn span {
    display: none;
  }

  .logout-btn {
    top: 15px;
    left: 15px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .ipca-logo {
    width: 50px;
    top: 15px;
    right: 15px;
  }

  .container {
    padding: 8px;
    width: 95%;
    border-radius: 16px;
    margin-top: 10px;
    border-width: 2px;
  }

  .container iframe {
    height: 300px;
    border-radius: 12px;
    min-height: 250px;
  }
}

@media (max-width: 360px) {
  .webinar-body {
    padding-top: 70px;
  }

  .container iframe {
    height: 250px;
    min-height: 200px;
  }
}
