@import "tailwindcss";

.login-page-container {
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: #f0f2f5;
}

/* Left Side: Background */
.login-left-panel {
  flex: 1;
  background: linear-gradient(135deg, #001529 0%, #003a8c 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 40px;
  overflow: hidden;
}

.login-left-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.login-branding {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}

.brand-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 2px;
  background: linear-gradient(to right, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

/* Right Side: Login Form */
.login-right-panel {
  width: 480px;
  min-width: 400px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.login-form-container {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.login-header {
  margin-bottom: 40px;
  text-align: left;
}

.login-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.login-header p {
  color: #6b7280;
  font-size: 14px;
}

/* Tabs Customization */
.login-tabs .ant-tabs-nav {
  margin-bottom: 32px;
}

.login-tabs .ant-tabs-tab {
  padding: 12px 0;
  font-size: 16px;
}

.login-tabs .ant-tabs-ink-bar {
  height: 3px;
  background: #1890ff;
}

/* Scan Login Styles */
.scan-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.qrcode-wrapper {
  background: white;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.scan-tip {
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 14px;
  text-align: center;
}

/* Tenant Selection Modal */
.tenant-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.tenant-card:hover {
  border-color: #1890ff;
  background-color: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.tenant-card.selected {
  border-color: #1890ff;
  background-color: #e6f7ff;
}

@media (max-width: 768px) {
  .login-left-panel {
    display: none;
  }
  
  .login-right-panel {
    width: 100%;
    padding: 40px 20px;
  }
}
