/* ORIGINAL STYLES - KEEP THESE */
.login-body{margin:0;padding:0;background:#0a0a1a;}
.login-bg{position:fixed;inset:0;background:linear-gradient(135deg,#0a0a1a 0%,#16213e 40%,#1a1a3e 70%,#2a1b4e 100%) center/cover no-repeat,url('/images/campus-bg.jpg') center/cover no-repeat;filter:brightness(.55);z-index:0;}
.login-overlay{position:relative;z-index:1;}

/* OLD CARD STYLES - KEEP FOR BACKWARD COMPATIBILITY */
.login-card{background:rgba(15,15,30,.92);border:1px solid rgba(124,58,237,.5);border-radius:20px;padding:40px;width:100%;max-width:440px;box-shadow:0 0 60px rgba(124,58,237,.25);overflow:visible;}
.login-logo{width:90px;height:90px;display:inline-block;border-radius:10px;}
.captcha-img{border:2px solid rgba(124,58,237,.5);border-radius:8px;height:60px;}
.otp-input{font-size:1.5rem;letter-spacing:8px;text-align:center;font-weight:700;}
.hcl-input{background-color:rgba(15,15,30,.6);color:#fff;border:1px solid rgba(124,58,237,.5);}
.hcl-input:focus{background-color:rgba(15,15,30,.8);color:#fff;border-color:#7c3aed;box-shadow:0 0 0 .2rem rgba(124,58,237,.25);}
.hcl-input::placeholder{color:rgba(255,255,255,.55);}

/* Base Styles - Enable Full Page Scroll */
.login-body {
    margin: 0;
    padding: 0;
    background: #0a0a1a;
    min-height: 100vh;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 55px;
}

/* ====== HEADER STYLES - FIXED AT TOP ====== */
.login-header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 55px;
    background: linear-gradient(90deg, #1e4db7 0%, #2563eb 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hcl-logo-header {
    filter: brightness(0) invert(1);
    height: 45px;
    width: 71px;
    display: inline-block;
    border-radius: 6px;
}

/* ====== ENHANCED VIBRANT BACKGROUND ====== */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hclbuilding.png')center;
    z-index: 0;
    filter: brightness(1.15) contrast(1.1);
}

/* Animated gradient overlay for depth */
.login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Subtle lighting effect */
.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, 
            rgba(59, 130, 246, 0.1) 0%, 
            transparent 30%, 
            transparent 70%, 
            rgba(10, 10, 26, 0.3) 100%
        );
    z-index: 2;
}

/* ====== MAIN CONTENT AREA - RIGHT ALIGNED (For Email/OTP Forms) ====== */
.login-overlay-right {
    /*position: relative;
    min-height: calc(100vh - 155px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 70px 10px 30px;
    z-index: 5;*/
    height: 100%;
    display: flex;
    align-items: center;
    
    padding: 80px;
}

/* ====== MAIN CONTENT AREA - CENTER ALIGNED (For Domain Selection) ====== */
.login-overlay-center {
    position: relative;
    min-height: calc(100vh - 125px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    z-index: 5;
}

.login-content-right {
    width: 100%;
    max-width: 420px;
    padding: 8px 0;
}

/* ====== WHITE LOGIN CARD - VERY COMPACT ====== */
.login-card-white {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    width: 100%;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.35), 
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(124, 58, 237, 0.15);
    position: relative;
    z-index: 6;
}

/* Subtle glow animation on card */
@keyframes cardGlow {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.35), 
            0 4px 12px rgba(0, 0, 0, 0.25),
            0 0 30px rgba(124, 58, 237, 0.15);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.35), 
            0 4px 12px rgba(0, 0, 0, 0.25),
            0 0 40px rgba(124, 58, 237, 0.25);
    }
}

.login-card-white:hover {
    animation: cardGlow 3s ease-in-out infinite;
}

/* ====== HEADING - COMPACT ====== */
.login-heading {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 18px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.2;
}

/* ====== LIGHT GREEN SUCCESS ALERT (Like in Image) ====== */
.otp-success-alert {
    background-color: #d1f4e0;
    color: #2d5f3f;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid #a7e7c3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ====== OTP BOXES CONTAINER (6 Square Boxes) ====== */
.otp-boxes-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 18px 0;
}

.otp-box {
    width: 48px;
    height: 48px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.otp-box:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.otp-box:not(:placeholder-shown) {
    border-color: #cbd5e0;
}

/* ====== FORM STYLES - VERY COMPACT ====== */
.form-group-modern {
    margin-bottom: 14px;
}

.form-label-modern {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.3;
}

/* ====== INPUT FIELDS & SELECT - COMPACT ====== */
.form-control-modern {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    line-height: 1.5;
    min-height: 42px;
    margin-bottom:15px;
}

.form-control-modern::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

.form-control-modern:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-control-modern:disabled {
    background: #f7fafc;
    color: #718096;
    cursor: not-allowed;
}

/* Select dropdown specific styling */
select.form-control-modern {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ====== CAPTCHA STYLES - COMPACT HEIGHT ====== */
.captcha-container {
    display: block;
    margin-bottom: 8px;
}

.captcha-display-wrapper {
    position: relative;
    margin-bottom: 5px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}

.captcha-image-modern {
    width: 90%;
    height: 40px;
    border: none;
    border-radius: 6px;
    object-fit: fill;
    background: #e5e7eb;
    display: block;
}

.btn-refresh-modern {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5F1EBE;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: color 0.2s ease;
    margin-bottom: 5px;
}

.btn-refresh-modern:hover {
    color: #5F1EBE;
    text-decoration: none;
}

.btn-refresh-modern:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
    border-radius: 3px;
}

/* ====== SEND OTP BUTTON - COMPACT ====== */
.btn-send-otp-modern {
    width: 100%;
    padding: 11px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #5F1EBE;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(95, 30, 190, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: 6px;
}

    .btn-send-otp-modern:hover {
        background: #5F1EBE;
        box-shadow: 0 6px 16px rgba(95, 30, 190, 0.45);
        transform: translateY(-1px);
    }

.btn-send-otp-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.35);
}

.btn-send-otp-modern:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ====== RESEND OTP STYLES ====== */
.resend-container {
    margin-top: 16px;
}

.resend-text-modern {
    font-size: 14px;
    color: #718096;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-resend-modern {
    background: transparent;
    border: none;
    color: #5F1EBE;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 8px;
    transition: color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-resend-modern:hover {
    color: #5F1EBE;
    text-decoration: underline;
}

/* ====== BACK LINK ====== */
.back-link-modern {
    font-size: 14px;
    color: #5F1EBE;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.back-link-modern:hover {
    color: #5F1EBE;
    text-decoration: underline;
}

/* ====== ALERT STYLES ====== */
.alert-modern {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ====== DEV OTP BANNER ====== */
.dev-otp-banner-modern {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dev-otp-badge {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.dev-otp-code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
}

.dev-otp-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    margin-left: auto;
}

.dev-otp-copy:hover {
    opacity: 0.7;
}

/* ====== FOOTER - FIXED AT BOTTOM ====== */
.login-footer-bottom {
    position: relative;
    width: 100%;
    padding: 18px 0;
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-text {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ====== FORM TEXT HELPER ====== */
.form-text-modern {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .login-overlay-right {
        justify-content: center;
        padding: 20px;
    }

    .login-card-white {
        padding: 20px 24px;
    }

    .otp-box {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .otp-boxes-container {
        gap: 6px;
    }

    .header-container,
    .footer-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .otp-box {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .otp-boxes-container {
        gap: 4px;
    }
}

.hcltech-btn-style {
    border: none;
    background: none;
}
.resendOtpForm {
    display: none;
}

.otp-msg {
    color: #718096;
    font-weight: 400;
    font-size: 13px;
}
.hcl-logo-stepup {
    width: 315px !important;
}
