/**
 * INDEP 2026 - Master Login Stylesheet
 * Refined Theme:
 * - Background Image (log_bg.jpeg) with full light blue ambient shade
 * - Login form in a blue gradient glassmorphism layout
 * - Enlarged college crest
 * - Exact reference structure (media_1796022427633_a7ec6ef5.jpg)
 */

@import url('./main.css');

.login-page-outer {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../../Img/log_bg.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 40px 20px;
  overflow: hidden;
}

/* Light Blue Shade Overlay over background image */
.login-page-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(219, 234, 254, 0.78) 0%,
    rgba(191, 219, 254, 0.72) 40%,
    rgba(147, 197, 253, 0.68) 75%,
    rgba(96, 165, 250, 0.65) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1;
}

/* Floating White & Blue Gradient Glassmorphism Login Card (No inner photo) */
.login-ref-floating-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(235, 244, 255, 0.9) 55%,
    rgba(204, 226, 255, 0.85) 100%
  );
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 30px 70px -15px rgba(26, 100, 240, 0.25),
    0 10px 28px -5px rgba(11, 37, 98, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  padding: 38px 36px 32px 36px;
  overflow: hidden;
  animation: fadeInDown 0.4s ease-out;
}

/* Subtle Soft Blue Glass Accent inside card */
.login-card-blue-sash {
  position: absolute;
  bottom: -115px;
  right: -95px;
  width: 320px;
  height: 210px;
  background: radial-gradient(
    circle at center,
    rgba(37, 99, 235, 0.22) 0%,
    rgba(26, 100, 240, 0.14) 60%,
    transparent 100%
  );
  border-radius: 50%;
  transform: rotate(-16deg) scaleX(1.25);
  z-index: 1;
  pointer-events: none;
}

.login-inner-content {
  position: relative;
  z-index: 10;
}

.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #D6E4F8;
  color: #092868;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.login-back-btn:hover {
  background: #1A64F0;
  color: #FFFFFF;
  border-color: #1A64F0;
  transform: translateX(-2px);
}

.login-header-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

/* Larger College Logo Crest */
.login-crest-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(26, 100, 240, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(26, 100, 240, 0.15);
  transition: transform 0.2s ease;
}

.login-crest-box:hover {
  transform: scale(1.05);
}

.login-crest-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-college-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0A1C3E;
  line-height: 1.2;
}

.login-fest-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #1A64F0;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.login-welcome-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0A1C3E;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.login-welcome-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Segmented Role Switcher: [Admin] [Department] */
.role-segmented-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: rgba(241, 245, 253, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(226, 236, 248, 0.9);
}

.role-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.84rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-switch-btn.active {
  background: var(--royal-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(26, 100, 240, 0.4);
}

/* Input Fields with Light Blue Tint */
.login-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.login-field-icon {
  position: absolute;
  left: 16px;
  color: #7B8FA8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.login-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: rgba(244, 247, 252, 0.85);
  border: 1.5px solid rgba(226, 236, 248, 0.9);
  border-radius: 14px;
  font-size: 0.94rem;
  color: var(--text-dark);
  transition: all 0.2s;
}

.login-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(26, 100, 240, 0.18);
}

.login-eye-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #7B8FA8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Remember me & Forgot Password */
.remember-forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.forgot-link {
  color: var(--royal-blue);
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Login Button */
.btn-login-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--royal-blue);
  color: #FFFFFF;
  padding: 14px;
  border-radius: 9999px;
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26, 100, 240, 0.42);
  transition: all 0.2s;
}

.btn-login-submit:hover {
  background: var(--royal-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 100, 240, 0.52);
}

.login-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.login-footer-text a {
  color: var(--royal-blue);
  font-weight: 700;
}

.quick-autofill-box {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  border: 1px dashed rgba(26, 100, 240, 0.25);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quick-autofill-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.quick-autofill-chip {
  cursor: pointer;
  background: #EBF2FD;
  color: var(--royal-blue);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
  margin-right: 6px;
  transition: all 0.15s ease;
}

.quick-autofill-chip:hover {
  background: #D8E7FF;
  transform: translateY(-1px);
}

.login-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
}

.login-alert.alert-error {
  background: #FEF3F2;
  color: #B42318;
  border: 1px solid #FECDCA;
  display: flex;
}

.login-alert.alert-success {
  background: #ECFDF3;
  color: #027A48;
  border: 1px solid #A6F4C5;
  display: flex;
}
