/* assets/css/auth-udema.css */

:root{
  --left-bg: #ffffff;
  --topbar-grad: linear-gradient(90deg, #4b1aa8 0%, #b2275c 100%);

  --greater-blue: #00A7E1;
  --greater-yellow: #FFE100;
  --greater-green: #0B6B2A;

  --text: #101828;
  --muted: #667085;

  --line: rgba(16,24,40,.12);
  --shadow: 0 18px 60px rgba(16,24,40,.18);

  --btn: #3b82f6;
  --btn-hover: #2563eb;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body.auth-body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:#0b0f17;
}

/* Shell */
.auth-shell{
  min-height: 100vh;
  display:flex;
}

/* Left panel */
.auth-left{
  width: min(460px, 100%);
  background: var(--left-bg);
  padding: 34px 34px 22px;
  position: relative;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
}

.auth-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 18px;
}
.auth-logo{
  height: 44px;
  width:auto;
}
.auth-brand-text{ line-height: 1.05; }
.auth-brand-title{
  font-weight: 900;
  letter-spacing: .6px;
}
.auth-brand-sub{
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .8px;
  font-size: 12px;
}

/* Alert */
.auth-alert{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color:#991b1b;
  margin: 10px 0 14px;
  font-weight: 700;
}
.auth-alert-dot{
  width:10px; height:10px;
  border-radius:50%;
  background:#ef4444;
  margin-top: 5px;
}

/* Social */
.auth-social{
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.social-btn{
  border: 0;
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 800;
  color: #fff;
  display:flex;
  align-items:center;
  gap: 10px;
  cursor: default; /* not implemented */
  opacity: .95;
}
.social-btn .social-ic{
  display:inline-flex;
  width: 34px;
  justify-content:center;
  font-weight: 900;
  opacity: .95;
}
.social-btn.fb{ background:#3b5998; }
.social-btn.gg{ background:#db4437; }
.social-btn.in{ background:#0077b5; }

.auth-divider{
  margin: 18px 0 18px;
  display:flex;
  align-items:center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}
.auth-divider::before,
.auth-divider::after{
  content:"";
  height:1px;
  background: var(--line);
  flex:1;
}
.auth-divider span{
  font-size: 13px;
}

/* Form */
.auth-form{ margin-top: 0; }
.auth-label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 8px;
  font-weight: 800;
}
.auth-input{
  width:100%;
  border: 0;
  border-bottom: 1px solid rgba(16,24,40,.18);
  padding: 12px 2px;
  outline: none;
  font-size: 15px;
}
.auth-input:focus{
  border-bottom-color: var(--greater-blue);
  box-shadow: 0 8px 0 -7px rgba(0,167,225,.35);
}

.auth-passwrap{
  display:flex;
  align-items:center;
  gap: 10px;
}
.pass-toggle{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 10px;
}
.pass-toggle:hover{
  background: rgba(16,24,40,.06);
}

.auth-link{
  display:inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--greater-blue);
  text-decoration: none;
  font-weight: 800;
}
.auth-link:hover{ text-decoration: underline; }

.auth-submit{
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 900;
  color:#fff;
  background: var(--btn);
  cursor: pointer;
}
.auth-submit:hover{ background: var(--btn-hover); }

.auth-signup{
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align:center;
  font-weight: 700;
}
.auth-signup a{
  color: var(--greater-blue);
  text-decoration:none;
  font-weight: 900;
}
.auth-signup a:hover{ text-decoration: underline; }

/* Bottom */
.auth-bottom{
  margin-top: auto;
  padding-top: 18px;
}
.erasmus-box{
  display:flex;
  gap: 12px;
  align-items:center;
  border-top: 1px solid rgba(16,24,40,.10);
  padding-top: 14px;
}
.erasmus-img{
  height: 46px;
  width:auto;
}
.erasmus-text{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}
.auth-copyright{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(16,24,40,.55);
  font-weight: 800;
}

/* Right image */
.auth-right{
  flex: 1;
  position: relative;
  min-height: 100vh;
  overflow:hidden;
}
.auth-photo{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.auth-photo-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.10)),
    radial-gradient(circle at 30% 30%, rgba(0,167,225,.12), rgba(0,0,0,0) 55%),
    radial-gradient(circle at 70% 60%, rgba(255,225,0,.10), rgba(0,0,0,0) 60%);
}

/* Responsive */
@media (max-width: 900px){
  .auth-right{ display:none; }
  .auth-left{
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }
}
/* ===== Animated Udema-style top header ===== */
.auth-topbar{
  position: relative;
  overflow: hidden;
  margin: -34px -34px 22px;
  padding: 22px 22px;
  background: linear-gradient(90deg, #4b1aa8 0%, #7b1e7a 45%, #b2275c 100%);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

/* Moving light sweep */
.auth-topbar-glow{
  position: absolute;
  inset: -60%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.18),
    transparent 55%
  );
  animation: glowMove 14s linear infinite;
  pointer-events: none;
}

/* Data flow lines */
.auth-topbar-flow{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      120deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.22) 50%,
      rgba(255,255,255,0.10) 100%
    );
  opacity: 0.25;
  transform: translateX(-100%);
  animation: flowMove 6s linear infinite;
  pointer-events: none;
}

/* Content stays above animation */
.auth-topbar-inner{
  position: relative;
  z-index: 2;
  display:flex;
  align-items:center;
  gap: 12px;
}

.auth-topbar-logo{
  height: 40px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

.auth-topbar-title{
  color: rgba(255,255,255,0.95);
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 16px;
}

/* Animations */
@keyframes glowMove{
  0%   { transform: translate(-10%, -10%); }
  50%  { transform: translate(20%, 15%); }
  100% { transform: translate(-10%, -10%); }
}

@keyframes flowMove{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* ===== Use index hero animation as login background ===== */
.auth-hero{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b0f17; /* fallback */
}

.auth-hero #bgCanvas,
.auth-hero #flowCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-hero .grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: .10;
}

.auth-hero .shade{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(0,167,225,.12), transparent 55%),
              linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.62));
}

.auth-hero .bottomfade{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.75));
}

/* ensure login UI sits above */
.auth-shell{ position: relative; z-index: 2; }
