body{
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
  /* background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); */
  color: #323130;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

.login-shell{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.login-shell::before{
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-shell::after{
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-card{
  width: min(960px, 100%);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-shadow: 
    0 25.6px 57.6px 0 rgba(0,0,0,.22),
    0 4.8px 14.4px 0 rgba(0,0,0,.18);
  border-radius: 8px;
  background: #ffffff;
  backdrop-filter: blur(40px);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 470px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-left{
  flex: 1;
  padding: 48px 48px 32px;
  background: #ffffff;
  color: #323130;
  position: relative;
  border-right: 1px solid #edebe9;
}

.login-left-inner{
  position: relative;
  z-index: 1;
}

.login-right{
  flex: 1;
  position: relative;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-slider{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  max-width: 360px;
  margin: 0 auto;
}

.login-slider-inner{
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
}

.login-slide{
  flex: 0 0 100%;
  padding: 24px 32px 32px;
  text-align: center;
}

.login-slide img{
  max-width: 260px;
  max-height: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto 16px;
}

.login-slide-caption{
  margin: 0;
  font-size: 14px;
  color: #605e5c;
}

.login-env-badge{
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--border, rgba(0,0,0,0.08));
  color: var(--text-secondary, #605e5c);
}

.brand{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.brand-badge{
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-badge svg {
  width: 48px;
  height: 48px;
}

.brand h1{
  font-size: 28px;
  margin: 0;
  font-weight: 600;
  color: #323130;
  letter-spacing: -0.5px;
}

.brand .meta{
  font-size: 28px;
  margin: 0;
  font-weight: 600;
  color: #323130;
  letter-spacing: -0.5px;
  margin-left: 15px;
}

.sub{
  color: #605e5c;
  margin: 16px 0 0;
  line-height: 1.6;
  font-size: 14px;
}

.login-title{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #323130;
  letter-spacing: -0.3px;
}

.login-sub{
  color: #605e5c;
  font-size: 14px;
  line-height: 1.6;
}

.login-highlights{
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #323130;
}

.login-highlights li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-left: 4px;
}

.login-highlights li::before{
  content: '✓';
  margin-top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0078d4;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.form{
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0;
}

.login-heading{
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #323130;
  letter-spacing: -0.3px;
}

.login-caption{
  color: #605e5c;
  font-size: 14px;
  margin: 0 0 24px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label{
  font-size: 14px;
  font-weight: 600;
  color: #323130;
  margin: 0;
}

.input{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8a8886;
  border-radius: 2px;
  font-size: 15px;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #323130;
  transition: all 0.1s ease;
  box-sizing: border-box;
}

.input:hover{
  border-color: #323130;
}

.input:focus{
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 1px #0078d4;
}

.input::placeholder{
  color: #a19f9d;
}

.row{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.row .meta{
  color: #605e5c;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.row .meta:hover{
  text-decoration: underline;
  color: #0078d4;
}

.error{
  padding: 12px 16px;
  background: #fde7e9;
  border-left: 3px solid #d13438;
  color: #a80000;
  font-size: 14px;
  border-radius: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.error::before{
  content: '⚠';
  font-size: 16px;
  flex-shrink: 0;
}

.login-footer{
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #605e5c;
  padding-top: 20px;
  border-top: 1px solid #edebe9;
}

.login-footer a{
  color: #0078d4;
  text-decoration: none;
}

.login-footer a:hover{
  text-decoration: underline;
}

.footer-note{
  margin-top: 24px;
  color: #605e5c;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.checkbox-container{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.checkbox{
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0078d4;
}

.checkbox-label{
  font-size: 14px;
  color: #323130;
  cursor: pointer;
  user-select: none;
}

/* Microsoft Logo Animation */
@keyframes logoRotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}

.brand-badge:hover svg{
  animation: logoRotate 0.6s ease-in-out;
}

@media (max-width: 880px){
  .login-shell{
    padding: 20px 16px;
  }
  
  .login-card{
    width: 100%;
  }
  
  .login-left{
    padding: 32px 24px 24px;
  }
  
  .login-right{
    padding: 24px 24px 32px;
  }
  
  .brand h1{
    font-size: 24px;
  }
  
  .login-heading{
    font-size: 20px;
  }
}

@media (max-width: 480px){
  .login-left{
    padding: 24px 20px 20px;
  }
  
  .login-right{
    padding: 20px 20px 24px;
  }
  
  .brand{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}