/* Login Screen Styles for Gem & Jewellery Research Symposium 2026 */

:root {
  --primary-color: #29147d;
  --primary-dark: #1b0a5a;
  --primary-glow: #3e1fa8;
  --accent-gold: #c0a35c;
  --accent-light: #e5cd8d;
  --accent-dark: #9a7d36;
  --bg-dark: #0b0720;
  --text-main: #1e293b;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.modern-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(41, 20, 125, 0.75) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(192, 163, 92, 0.3) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(29, 77, 159, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(41, 20, 125, 0.65) 0px, transparent 50%);
  background-attachment: fixed;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Elements */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

.ambient-orb-1 {
  width: 400px;
  height: 400px;
  background: #29147d;
  top: -100px;
  left: -100px;
}

.ambient-orb-2 {
  width: 320px;
  height: 320px;
  background: #c0a35c;
  bottom: -60px;
  right: -60px;
  opacity: 0.28;
}

.ambient-orb-3 {
  width: 280px;
  height: 280px;
  background: #107cc0;
  top: 45%;
  right: 12%;
  opacity: 0.22;
}

/* Main Layout Card */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1080px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.5rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 45px rgba(192, 163, 92, 0.18);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  animation: fadeInScale 0.45s ease-out forwards;
}

@media (min-width: 960px) {
  .login-container {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Left Showcase Panel */
.showcase-panel {
  background: linear-gradient(150deg, #160849 0%, #29147d 60%, #150742 100%);
  color: #ffffff;
  padding: 3.25rem 2.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.showcase-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(192, 163, 92, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(16, 124, 192, 0.25) 0%, transparent 45%);
  pointer-events: none;
}

.showcase-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(192, 163, 92, 0.35), transparent);
}

.showcase-content {
  position: relative;
  z-index: 2;
}

.symposium-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(192, 163, 92, 0.16);
  border: 1px solid rgba(192, 163, 92, 0.45);
  color: #e5cd8d;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.symposium-pill svg {
  width: 15px;
  height: 15px;
  color: #c0a35c;
}

.showcase-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.showcase-title span {
  background: linear-gradient(135deg, #ffffff 40%, #e5cd8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-quote-box {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #c0a35c;
  padding: 0.9rem 1.15rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.theme-quote-text {
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.55;
  color: #f1f5f9;
  font-weight: 500;
}

/* Event Highlights & Metadata */
.event-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.info-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(192, 163, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0a35c;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.info-item:hover .info-icon-box {
  background: rgba(192, 163, 92, 0.22);
  border-color: rgba(192, 163, 92, 0.6);
  transform: translateY(-2px);
}

.info-details h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e5cd8d;
  margin-bottom: 0.2rem;
}

.info-details p {
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.45;
  font-weight: 500;
}

.showcase-footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.showcase-footer strong {
  color: #e5cd8d;
  font-weight: 600;
}

/* Right Form Panel */
.form-panel {
  padding: 3.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

@media (max-width: 640px) {
  .form-panel {
    padding: 2.25rem 1.5rem;
  }
  .showcase-panel {
    padding: 2.25rem 1.5rem;
  }
  .showcase-title {
    font-size: 1.5rem;
  }
}

/* Form Header with Gem Emblem */
.form-header {
  margin-bottom: 1.85rem;
}

.gem-emblem-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(41, 20, 125, 0.08) 0%, rgba(192, 163, 92, 0.2) 100%);
  border: 1.5px solid rgba(192, 163, 92, 0.4);
  box-shadow: 0 8px 18px rgba(41, 20, 125, 0.09);
  margin-bottom: 1.15rem;
  color: #29147d;
  transition: all 0.3s ease;
}

.gem-emblem-wrap:hover {
  transform: rotate(5deg) scale(1.05);
  border-color: var(--accent-gold);
}

.form-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Alert Box */
.alert-error-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  animation: shake 0.4s ease-in-out;
}

.alert-error-modern svg {
  width: 18px;
  height: 18px;
  color: #dc2626;
  flex-shrink: 0;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.35rem;
  position: relative;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 1.1rem;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-input-modern {
  width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 2.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.25s ease;
}

.form-input-modern::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-input-modern:focus {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(41, 20, 125, 0.1);
}

.form-input-modern:focus + .input-icon-left,
.form-group:focus-within .input-icon-left {
  color: var(--primary-color);
}

/* Password Toggle */
.password-toggle-btn {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #334155;
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Submit Button */
.btn-submit-glow {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1b0a5a;
  background: linear-gradient(135deg, #d4b568 0%, #c0a35c 50%, #af8f45 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(192, 163, 92, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-submit-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn-submit-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(192, 163, 92, 0.45);
  background: linear-gradient(135deg, #dfc279 0%, #cbb06b 50%, #ba9b52 100%);
}

.btn-submit-glow:hover::before {
  left: 100%;
}

.btn-submit-glow:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(192, 163, 92, 0.3);
}

.btn-submit-glow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-submit-glow:hover svg {
  transform: translateX(3px);
}

/* Links and Actions */
.form-links-area {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  font-size: 0.875rem;
}

.account-prompt {
  color: #64748b;
}

.link-primary-bold {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-primary-bold:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-home-link:hover {
  color: var(--primary-color);
}

.back-home-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.back-home-link:hover svg {
  transform: translateX(-3px);
}

/* Keyframes */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
