
:root{
  --brown:#43180c;
  --orange:#e86b0a;
  --gradient:linear-gradient(115deg,#f88d1c 0%,#bd5616 48%,#702307 100%);
  --font:Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{background:#fffcfa;color:var(--brown);font-family:var(--font);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible{outline:3px solid #f1a95b;outline-offset:3px}
.site{position:relative;min-height:100vh;min-height:1024px;display:grid;grid-template-columns:56% 44%;overflow:hidden;background:radial-gradient(ellipse 65% 72% at 31% 64%,#fffaf6 0%,#fffdfb 55%,#fffdfc 100%)}
/* The photographic decorative elements are taken from the supplied visual reference. */
.hero{position:relative;min-width:0;min-height:1024px;overflow:hidden;isolation:isolate}
.hero::before{position:absolute;top:-140px;left:-220px;width:1070px;height:800px;content:"";border-radius:50%;border:1px solid rgba(221,160,114,.12);z-index:-1}
.hero::after{position:absolute;content:"";z-index:0;inset:0;background:radial-gradient(ellipse 51% 42% at 52% 72%,rgba(255,255,255,.45),transparent 70%);pointer-events:none}
.leaves{position:absolute;pointer-events:none;z-index:0;opacity:.61;filter:blur(2.5px)}
.leaves.top-left{left:0;top:0;width:150px;height:175px;background:url("/assets/leaves_left_0.webp") left top/contain no-repeat}
.leaves.top-center{right:12px;top:0;width:320px;height:110px;opacity:.52;background:url("/assets/leaves_top_1.webp") center/contain no-repeat}
.campus-scene{position:absolute;z-index:0;bottom:0;left:0;right:0;height:460px;background:url("/assets/modern_campus_bg.jpg") center bottom/cover no-repeat;opacity:.92}
.campus-scene::before{position:absolute;content:"";z-index:1;inset:0;background:linear-gradient(to bottom,#fffdfb 0%,#fffdfbe8 18%,#fffdfb4d 50%,#ffffff00 80%,rgba(255,250,237,.20) 100%)}
.campus-building{display:none}
.hero-content{position:relative;z-index:2;padding-top:clamp(90px,11vh,140px);padding-left:clamp(45px,10.4vw,160px);padding-right:65px}
.brand{width:auto;max-width:100%;display:flex;align-items:flex-start;flex-direction:column;height:auto;min-height:0;margin-left:0}
.brand img{display:block;max-width:100%;height:auto;object-fit:contain}
.brand .brand-subtitle{display:none!important}
.brand .brand-wordmark-wrap{display:flex;align-items:center;justify-content:center;margin:18px 0 4px;width:100%}
.brand .brand-aagron-title{font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-size:clamp(36px,3.4vw,44px);font-weight:900;letter-spacing:-1.2px;line-height:1;display:inline-flex;align-items:center;gap:10px}
.brand .brand-wordmark-wrap img{display:block;height:66px;width:auto;max-width:320px;object-fit:contain;mix-blend-mode:multiply}
.brand .brand-tagline{display:flex;align-items:center;justify-content:flex-start;gap:13px;white-space:nowrap;margin-top:16px;color:#785e51;font-size:13px;font-weight:650;letter-spacing:5px}
.brand .brand-tagline i{width:11px;height:11px;background:#f27614;border-radius:50%;display:inline-block}
.hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(55px,5.5vw,82px);font-weight:700;letter-spacing:-3px;line-height:.96;margin:36px 0 10px;color:#3b120b;text-align:left;white-space:nowrap}
.hero h1 em{font-style:normal;color:#ea6a09}
.hero p{font-size:21px;line-height:1.47;color:#7c695d;max-width:530px;font-weight:400;letter-spacing:.25px;margin:0 0 16px;text-align:left}
.features{display:flex;align-items:stretch;gap:18px;margin-top:19px;margin-left:0;width:auto;max-width:calc(100% + 10px)}
.feature{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;width:180px;height:130px;border:1px solid #efe4dc;border-radius:17px;background:rgba(255,255,255,.91);box-shadow:0 13px 23px rgba(84,47,25,.045)}
.feature svg{width:40px;height:40px;color:#e96a0b;fill:#e96a0b;stroke:#e96a0b;margin-bottom:5px}
.feature span{color:#3c1a11;font-size:17px;line-height:1.2;font-weight:550}
.login-region{position:relative;min-width:0;display:flex;align-items:flex-start;justify-content:center;padding:102px 56px 70px 0}
.login-region::before{position:absolute;content:"";right:-70px;top:-250px;width:750px;height:780px;border:1px solid rgba(234,146,79,.20);border-radius:50%;transform:rotate(-20deg);pointer-events:none}
.login-card{position:relative;width:min(622px,100%);min-height:831px;background:#fffefcf5;border:1px solid #f0e0d7;border-radius:29px;box-shadow:0 18px 45px rgba(124,73,40,.08);padding:65px 40px 37px}
.welcome{text-align:center;text-transform:uppercase;color:#da5107;font-weight:650;font-size:16px;letter-spacing:5.7px;margin:0 0 9px}
.login-card h2{font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-size:clamp(46px,4.5vw,56px);font-weight:900;letter-spacing:-1.8px;line-height:1.05;margin:8px 0 14px;color:#72230d;text-align:center;display:flex;align-items:center;justify-content:center;gap:12px}
.login-brand-heading{display:flex;align-items:center;justify-content:center;margin:8px 0 14px}
.login-heading-wordmark{display:block;height:76px;width:auto;max-width:380px;object-fit:contain;mix-blend-mode:multiply}
.part-aagron{color:#72230d;font-weight:900}
.part-campus{color:#ff6000;font-weight:900}
.brand-aagron-text{color:#72230d;font-weight:850}
.brand-campus-text{color:#ff6000;font-weight:850}
.subheading{text-align:center;font-size:14px;font-weight:650;letter-spacing:5px;color:#857369;margin:17px 0 20px}
.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:136px;overflow:hidden;border-radius:15px;border:1px solid #e8dcd5;background:#fff;margin:0 0 34px}
.tab{border:0;border-right:1px solid #e8dfda;min-width:0;background:#fff;color:#38190e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;transition:background .17s ease,color .17s ease}
.tab:last-child{border-right:0}
.tab[aria-selected="true"]{background:var(--gradient);color:#fff}
.tab svg{width:38px;height:38px;color:currentColor;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab .tab-name{font-size:18px;font-weight:600;line-height:1.25;margin-top:2px}
.tab .tab-desc{font-size:13px;font-weight:400;opacity:.75;line-height:1.2;white-space:nowrap}
.tab[aria-selected="true"] .tab-desc{opacity:1}
.tab:hover:not([aria-selected="true"]){background:#faf6f3}
.group{margin-bottom:23px}
.group label{display:block;color:#38180e;font-size:17px;font-weight:650;margin-bottom:11px}
.input-frame{position:relative;display:flex;align-items:center;height:62px;border:1px solid #ddd2cb;background:#fff;border-radius:15px;transition:border-color .15s,box-shadow .15s}
.input-frame:focus-within{border-color:#b86630;box-shadow:0 0 0 3px #eeaa7227}
.input-frame>svg{width:23px;height:23px;margin:0 17px 0 22px;color:#9b8980;flex-shrink:0;stroke-width:1.8}
.input-frame input{flex:1;border:0;outline:0;height:100%;width:100%;background:transparent;color:#451f13;padding:0 17px 0 0;font-size:16px;min-width:0}
.input-frame input::placeholder{color:#a19389;opacity:1}
.eye{display:flex;align-items:center;justify-content:center;background:none;border:0;padding:10px 15px;color:#a3948b}
.eye svg{width:20px;height:20px;stroke-width:1.8}
.row-help{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:-3px;margin-bottom:31px}
.remember{display:flex;align-items:center;gap:12px;cursor:pointer;color:#432013;font-size:16px}
.remember input{appearance:none;width:25px;height:25px;border:1.5px solid #b8aaa1;border-radius:5px;background:#fff;cursor:pointer;display:grid;place-items:center;margin:0}
.remember input:checked{background:#a64d1c;border-color:#a64d1c}
.remember input:checked::after{content:'✓';font-size:18px;color:#fff;line-height:1}
.link{border:0;padding:0;background:transparent;color:#ce530f;text-decoration:underline;text-underline-offset:2px;font-size:16px}
.signin{width:100%;height:72px;display:flex;gap:18px;align-items:center;justify-content:center;border:0;border-radius:16px;background:var(--gradient);color:#fff;font-size:21px;font-weight:650}
.signin:hover{filter:brightness(1.045)}
.signin svg{width:23px;height:23px;stroke-width:2}
.support{text-align:center;color:#97887e;font-size:16px;margin:34px 0 0}
.support a{color:#cc4e0c;text-decoration:underline}
.notice{margin-top:14px;border:1px solid #ecd7c7;border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.4;background:#fff8f1;color:#754420;display:none}
.notice.is-error{border-color:#f1b3a7;color:#a42d22;background:#fff5f2}
.notice.is-visible{display:block}
.reset-panel{display:none;padding-top:8px}
.reset-panel.visible{display:block}
.reset-panel p{color:#7b6b64;line-height:1.5;font-size:16px}
.hidden{display:none!important}
.back{margin:18px auto 0;display:block;border:0;background:transparent;color:#b35420;font-weight:600;font-size:14px}
/* Scale the desktop composition gracefully; maintain a real mobile layout. */
@media(max-width:1350px){
 .site{grid-template-columns:53% 47%}
 .hero-content{padding-left:clamp(30px,7vw,110px)}
 .hero h1{font-size:clamp(50px,5.6vw,73px)}
 .features{gap:10px;margin-left:-15px}
 .feature{width:clamp(135px,12vw,166px);height:124px}
 .login-region{padding-right:24px;padding-left:15px}
 .login-card{padding-left:27px;padding-right:27px}
 .tab .tab-desc{font-size:11px}
}
@media(max-width:1040px){
 .site{grid-template-columns:49% 51%}
 .hero-content{padding-left:35px;padding-right:15px}
 .hero h1{font-size:clamp(45px,5.3vw,59px);letter-spacing:-2px}
 .hero p{font-size:17px}
 .features{margin-left:0;gap:7px}
 .feature{width:29%;min-width:0;height:117px}
 .feature span{font-size:13px}
 .login-region{padding-top:70px;padding-right:22px}
 .login-card{min-height:760px;padding:45px 24px 30px}
 .login-card h2{font-size:38px}
 .tabs{height:110px}
 .tab svg{width:29px;height:29px}
 .tab .tab-name{font-size:15px}
 .tab .tab-desc{font-size:10px;white-space:normal}
}
@media(max-width:760px){
 .site{grid-template-columns:1fr;min-height:100vh;overflow:hidden}
 .login-region::before{display:none}
 .hero{min-height:460px}
 .hero-content{padding:18px 22px 150px;text-align:center;display:flex;flex-direction:column;align-items:center}
 .brand{height:156px;width:240px}
 .brand img{height:102px;width:185px}
 .brand .brand-subtitle{font-size:17px;letter-spacing:7px}
 .brand .brand-tagline{font-size:9px;letter-spacing:2.2px;gap:7px;margin-top:8px}
 .brand .brand-tagline i{width:7px;height:7px}
 .hero h1{font-size:40px;line-height:1.05;margin:14px 0 8px;letter-spacing:-1.4px}
 .hero p{font-size:13px;max-width:450px;line-height:1.4}
 .features{margin-top:20px;gap:8px;width:100%;max-width:420px;justify-content:center}
 .feature{width:32%;height:77px;border-radius:10px}
 .feature svg{width:24px;height:24px;margin-bottom:4px}
 .feature span{font-size:11px;line-height:1.14}
 .campus-scene{height:135px;background-size:100% 140px}
 .campus-building{display:none}
 .login-region{padding:0 15px 30px;margin-top:-15px}
 .login-card{min-height:auto;width:100%;max-width:510px;padding:29px 20px;border-radius:22px}
 .welcome{font-size:11px;letter-spacing:3px}
 .login-card h2{font-size:34px}
 .subheading{font-size:10px;letter-spacing:3px;margin:12px 0 21px}
 .tabs{height:105px;margin-bottom:24px}
 .tab svg{width:26px;height:26px}
 .tab .tab-name{font-size:13px}
 .tab .tab-desc{font-size:9px}
 .group{margin-bottom:18px}
 .group label{font-size:14px;margin-bottom:8px}
 .input-frame{height:51px}
 .input-frame input{font-size:14px}
 .row-help{margin-bottom:24px}
 .remember{font-size:13px;gap:8px}
 .remember input{width:20px;height:20px}
 .link{font-size:13px}
 .signin{height:56px;font-size:17px}
 .support{margin-top:24px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Compact form, keeping the approved reference design visually intact. */
.site{min-height:100vh;grid-template-columns:56% 44%}
.hero{min-height:100vh}
.login-region{align-items:center;padding:18px clamp(18px,2.8vw,43px) 18px 0}
.login-card{width:min(622px,100%);min-height:0;padding:27px clamp(22px,2.8vw,40px) 20px;border-radius:25px}
.welcome{font-size:12px;letter-spacing:4.2px;margin-bottom:7px}
.login-card h2{font-size:clamp(32px,2.65vw,42px);letter-spacing:-.8px}
.campus-building{opacity:.62;mask-image:radial-gradient(ellipse 87% 52% at 75% 48%,#000 5%,rgba(0,0,0,.53) 50%,transparent 98%)}
.subheading{font-size:11px;letter-spacing:3.7px;margin:11px 0 17px}
.tabs{height:101px;margin:0 0 17px;border-radius:13px}
.tab{gap:2px;padding:8px 3px}
.tab svg{width:25px;height:25px;stroke-width:1.8}
.tab .tab-name{font-size:13.5px;line-height:1.14;margin-top:2px}
.tab .tab-desc{font-size:10.5px;line-height:1.12;white-space:normal}
.group{margin-bottom:10px}
.group label{font-size:13.5px;margin-bottom:6px}
.input-frame{height:46px;border-radius:10px}
.input-frame>svg{width:18px;height:18px;margin:0 12px 0 15px}
.input-frame input{font-size:14px;padding-right:10px}
.eye{padding:7px 10px}
.eye svg{width:18px;height:18px}
.row-help{margin:11px 0 15px}
.remember{font-size:12.5px;gap:8px}
.remember input{width:16px;height:16px;border-radius:3px}
.remember input:checked::after{font-size:13px}
.link{font-size:12.5px;font-weight:650;text-decoration:none}
.link:hover{text-decoration:underline}
.signin{height:50px;font-size:15.5px;border-radius:10px;gap:13px}
.signin svg{width:20px;height:20px}
.secure-footer{display:flex;align-items:center;justify-content:center;text-align:center;gap:9px;border-top:1px solid #eee4dc;padding-top:14px;margin-top:17px;font-size:11.5px;color:#887d75}
.secure-footer svg{width:17px;height:17px;color:#bf7124;flex:none}
.preview-footnote{text-align:center;color:#aaa09a;font-size:9.5px;margin:11px 0 0}
.reset-panel p{font-size:12px;line-height:1.45}
.back{margin-top:13px}
@media(min-width:761px) and (max-height:900px){
  .hero-content{padding-top:clamp(75px,9.5vh,110px)}
  .brand .brand-tagline{font-size:12px;margin-top:10px}
  .hero h1{margin:clamp(8px,2.5vh,22px) 0 10px;font-size:clamp(48px,5vw,69px)}
  .hero p{font-size:clamp(16px,1.3vw,19px);line-height:1.42}
  .features{margin-top:clamp(12px,2.5vh,19px)}
  .feature{height:clamp(93px,12.5vh,114px)}
  .feature svg{width:32px;height:32px}
  .feature span{font-size:15px}
  .campus-scene{height:clamp(205px,31vh,300px);background-size:100% 100%}
  .campus-building{bottom:clamp(160px,28vh,235px)}
}
@media(max-width:1040px) and (min-width:761px){
  .site{grid-template-columns:49% 51%}
  .login-region{padding:12px 18px}
  .login-card{padding:22px 19px 18px}
  .tab .tab-name{font-size:11.8px}
  .tab .tab-desc{font-size:9px}
  .hero h1{white-space:normal}
}
@media(max-width:760px){
  .site{grid-template-columns:1fr;min-height:100vh}
  .hero{min-height:437px}
  .hero-content{padding:16px 17px 144px}
  .brand{height:145px;width:240px}
  .brand img{height:101px;width:185px}
  .brand .brand-subtitle{font-size:17px}
  .brand .brand-tagline{font-size:9px;margin-top:8px}
  .hero h1{font-size:38px;line-height:1.03;margin:9px 0 7px;letter-spacing:-1.3px;white-space:normal}
  .hero p{font-size:12px;line-height:1.35}
  .features{margin-top:12px;gap:8px}
  .feature{height:73px;width:32%}
  .feature svg{width:23px;height:23px}
  .feature span{font-size:10.5px}
  .campus-scene{height:142px;background-size:cover}
  .login-region{padding:0 13px 25px;margin-top:-14px}
  .login-card{width:100%;max-width:510px;padding:22px 17px 17px;border-radius:20px}
  .welcome{font-size:10px;letter-spacing:3px}
  .login-card h2{font-size:31px}
  .subheading{font-size:9.5px;letter-spacing:3px;margin:9px 0 15px}
  .tabs{height:97px;margin-bottom:16px}
  .tab svg{height:24px;width:24px}
  .tab .tab-name{font-size:11.4px}
  .tab .tab-desc{font-size:8.5px}
  .group{margin-bottom:10px}
  .group label{font-size:12px}
  .input-frame{height:45px}
  .input-frame input{font-size:12px}
  .row-help{margin:9px 0 14px}
  .remember,.link{font-size:11px}
  .signin{height:49px;font-size:15px}
  .secure-footer{font-size:9.5px;margin-top:15px;padding-top:13px}
  .preview-footnote{font-size:8px}
}
@media(max-width:360px){
 .tab .tab-name{font-size:10.2px}
 .tab .tab-desc{font-size:7.7px}
 .login-card{padding:19px 12px}
 .hero h1{font-size:35px}
}


/* The reset panel shares the same visual language as the approved login card. */
.reset-input { padding-left: 18px !important; }
.signin:disabled, .tab:disabled, .back:disabled { opacity: .65; cursor: wait; }
.input-frame input:disabled { color: #807166; }
.notice.is-success { background: #fffaf5; border-color: #ead2bd; color: #6e351c; }
.notice.is-info { background: #f8fafc; border-color: #dee6ec; color: #37505e; }

/* Apply for Admission Button */
.apply-admission-btn {
  width: 100%;
  box-sizing: border-box;
  height: 58px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ce530f;
  border-radius: 16px;
  background: #fffaf7;
  color: #ce530f;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(206, 83, 15, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}
.apply-admission-btn:hover {
  background: #ce530f !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(206, 83, 15, 0.25) !important;
  transform: translateY(-1px);
}
.apply-admission-btn:active {
  transform: translateY(0);
}
.apply-admission-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* Branded Loading Overlay - Student Portal & ERP Standard */
.login-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.login-loading-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.login-loading-card {
  background: #ffffff;
  border: 1px solid #efe4dc;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(92, 36, 9, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 44px 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-loading-overlay.is-active .login-loading-card {
  transform: translateY(0) scale(1);
}

.login-loading-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.login-loading-logo {
  height: 92px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(92, 36, 9, 0.08));
}

.login-loading-bar-wrap {
  width: 100%;
  max-width: 260px;
  height: 5px;
  background: #f5ece5;
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 20px;
  position: relative;
}

.login-loading-bar-slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #5c2409, #f97316);
  border-radius: 99px;
  animation: aagronBarSlide 1.4s infinite ease-in-out;
}

.login-loading-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.login-loading-desc {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
  max-width: 360px;
}

.login-loading-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #8c7a70;
  font-weight: 600;
  margin-top: 4px;
}

.login-loading-badge svg {
  width: 15px;
  height: 15px;
  stroke: #ea580c;
  fill: none;
  stroke-width: 2.2;
}

@keyframes aagronBarSlide {
  0% { left: -50%; }
  100% { left: 100%; }
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
