/*jayadhasanofficial@gmail.com
*/
:root{
  --red:#d52b1e;
  --red-deep:#a3170e;
  --red-dark:#8c1109;
  --paper:#ffffff;
  --mist:#f6f4f3;
  --line:#e8e3e1;
  --text:#1d1716;
  --muted:#7a706d;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  /* paper-grain texture */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{min-height:100%}
body{font-family:var(--sans);color:var(--text);background:var(--paper);-webkit-font-smoothing:antialiased}

.page{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100vh;min-height:100dvh}

/* ---------- Brand panel ---------- */
.brand{
  position:relative;overflow:hidden;color:var(--text);background:#f8f4f2;
  display:flex;flex-direction:column;justify-content:space-between;
  padding:clamp(32px,5vw,72px) clamp(32px,5vw,72px) clamp(32px,5vw,72px) calc(clamp(32px,5vw,72px) + 8px);
}
/* red edge: a small nod to the flag */
.brand::before{content:"";position:absolute;left:0;top:0;bottom:0;width:8px;background:var(--red)}
/* texture: fine red dot grid fading out */
.brand::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(213,43,30,.22) 1px,transparent 1.2px);
  background-size:22px 22px;
  -webkit-mask-image:linear-gradient(200deg,#000 0%,transparent 50%);
          mask-image:linear-gradient(200deg,#000 0%,transparent 50%);
}
.brand>*{position:relative;z-index:1}

.brand h1{
  font-family:var(--serif);font-weight:600;font-size:clamp(2.4rem,4.4vw,3.8rem);
  line-height:1.05;letter-spacing:-.02em;max-width:11em;margin-bottom:18px
}
.brand .tagline{color:var(--muted);font-size:1.05rem}

.access{list-style:none;padding:0;margin-top:44px;display:grid;grid-template-columns:repeat(2,max-content);gap:14px 48px;font-size:.95rem}
.access li{display:flex;align-items:center;gap:10px}
.access li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--red)}

.contact{border-top:1px solid #e0d8d5;padding-top:24px;display:grid;gap:6px;font-size:.88rem;color:var(--muted);font-style:normal;line-height:1.55;max-width:34em}
.contact strong{color:var(--text);font-weight:600;font-size:.95rem}
.contact a{color:inherit;text-decoration:none}
.contact a:hover{color:var(--red);text-decoration:underline}
.contact .row{display:flex;flex-wrap:wrap;gap:4px 24px}
.contact,.contact a,.contact span{overflow-wrap:anywhere}

/* ---------- Form panel ---------- */
.panel{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;padding:clamp(28px,5vw,64px);padding-bottom:max(clamp(28px,5vw,64px),env(safe-area-inset-bottom));background:var(--paper)}
.card{width:100%;max-width:400px}
.logo{display:block;width:min(240px,70%);height:auto;margin:0 auto 32px}
.card h2,.card .sub{text-align:center}
.card h2{font-family:var(--serif);font-weight:600;font-size:2rem;letter-spacing:-.015em;margin-bottom:8px}
.card .sub{color:var(--muted);font-size:.95rem;margin-bottom:36px}

.field{margin-bottom:22px}
label{display:block;font-size:.85rem;font-weight:500;margin-bottom:8px}
.control{position:relative}
.control svg.lead{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#a79d99;pointer-events:none;transition:color .15s}
input{
  width:100%;height:50px;padding:0 44px;font:inherit;font-size:.95rem;color:var(--text);
  background:var(--mist);border:1px solid transparent;border-radius:12px;outline:none;
  transition:border-color .15s,background .15s,box-shadow .15s
}
input::placeholder{color:#a79d99}
@media (hover:hover){input:hover{border-color:var(--line)}}
input:focus{background:#fff;border-color:var(--red);box-shadow:0 0 0 4px rgba(213,43,30,.12)}
.control:focus-within svg.lead{color:var(--red)}

.toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:none;border-radius:9px;color:#a79d99;cursor:pointer;display:grid;place-items:center}
@media (hover:hover){.toggle:hover{color:var(--text)}}
.toggle:focus-visible{outline:2px solid var(--red);outline-offset:1px}
.toggle svg{width:18px;height:18px}

.submit{
  width:100%;height:52px;margin-top:8px;border:0;border-radius:12px;background:var(--red);color:#fff;
  font:inherit;font-weight:600;font-size:1rem;cursor:pointer;
  transition:background .15s,transform .1s
}
@media (hover:hover){.submit:hover{background:var(--red-dark)}}
.submit:active{background:var(--red-dark)}
.submit:active{transform:scale(.99)}
.submit:focus-visible{outline:3px solid rgba(213,43,30,.35);outline-offset:3px}

.help{margin-top:28px;text-align:center;font-size:.9rem;color:var(--muted)}
.help a{color:var(--red);font-weight:600;text-decoration:none}
.help a:hover{text-decoration:underline}
.legal{margin-top:48px;font-size:.78rem;color:#a79d99;text-align:center}

@media (prefers-reduced-motion:no-preference){
  .card{animation:rise .6s cubic-bezier(.2,.7,.2,1) both}
  @keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
}

/* ---------- Responsive ---------- */
/* very large screens: keep content from stretching */
@media (min-width:1600px){
  .page{max-width:1800px;margin:0 auto}
  .card{max-width:440px}
}
/* tablets & phones: login first, university info below */
@media (max-width:900px){
  .page{grid-template-columns:1fr;min-height:0}
  .panel{order:-1;padding:44px 24px 36px}
  .card{max-width:440px}
  .brand{gap:32px;padding:40px 24px calc(32px + env(safe-area-inset-bottom))}
  .brand::before{right:0;bottom:auto;width:auto;height:6px}
  .brand h1{font-size:clamp(1.9rem,6vw,2.6rem);max-width:none}
  .access{margin-top:24px;gap:12px 32px}
  .legal{margin-top:36px}
}
/* phones */
@media (max-width:600px){
  .panel{padding:32px 20px 28px}
  .logo{width:min(210px,64%);margin-bottom:26px}
  .card h2{font-size:1.75rem}
  .card .sub{margin-bottom:28px}
  input{font-size:16px}              /* stops iOS zoom on focus */
  .brand{padding-left:20px;padding-right:20px}
}
@media (max-width:480px){.access{grid-template-columns:1fr}}
/* very small phones */
@media (max-width:360px){
  .panel{padding-left:16px;padding-right:16px}
  .brand{padding-left:16px;padding-right:16px}
  .contact .row{flex-direction:column}
}
/* short landscape screens: tighten vertical space */
@media (max-height:560px) and (min-width:600px){
  .panel{justify-content:flex-start;padding-top:24px;padding-bottom:24px}
  .logo{width:150px;margin-bottom:16px}
  .card .sub{margin-bottom:20px}
  .field{margin-bottom:14px}
  .legal{margin-top:24px}
}

/* ---------- Design refinements ---------- */
:root{--green:#0a7d45}
/* short red + green rule (from the logo) above the tagline */
.brand .tagline::before{content:"";display:block;width:56px;height:3px;border-radius:3px;margin-bottom:16px;background:linear-gradient(90deg,var(--red) 0 62%,var(--green) 62%)}
.brand h1{margin-bottom:22px}
/* access list: soft check badges */
.access{gap:16px 44px}
.access li::before{width:22px;height:22px;border-radius:50%;flex:none;background:#fbe6e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d52b1e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.access li:last-child::before{background:#dcf1e5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7d45' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
/* contact: small line icons */
.contact>span:not(.row),.contact .row a{position:relative;padding-left:24px}
.contact>span:not(.row)::before,.contact .row a::before{content:"";position:absolute;left:0;top:.28em;width:16px;height:16px;background:var(--red);-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}
.contact>span:not(.row)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")}
.contact .row a:first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E")}
.contact .row a:last-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E")}
.contact{border-top-color:#e6dcd8}
/* form polish */
.logo{margin-bottom:30px}
input{background:#f7f5f4;border-color:#efeae8}
input:focus{border-color:var(--red)}
.submit{background:linear-gradient(180deg,#dc3326,#c9261a);box-shadow:0 10px 22px -10px rgba(213,43,30,.7),inset 0 1px 0 rgba(255,255,255,.18);letter-spacing:.01em}
@media (hover:hover){.submit:hover{background:linear-gradient(180deg,#c9261a,#a81c12);box-shadow:0 12px 26px -10px rgba(213,43,30,.8),inset 0 1px 0 rgba(255,255,255,.14)}}
.help{margin-top:26px}
.legal{margin-top:36px;padding-top:20px;border-top:1px solid var(--line)}
@media (max-width:480px){.contact .row a{display:block}}
