
body{background:linear-gradient(135deg,#eef4ff,#f8fbff);font-family:Segoe UI,Tahoma,sans-serif;overflow-x:hidden}
.home-btn{position:fixed;top:20px;right:20px;z-index:1000;background:#0d6efd;color:#fff;text-decoration:none;padding:12px 18px;border-radius:12px;font-weight:600}
.hero-bg{position:fixed;inset:0;pointer-events:none}
.floating-card{position:absolute;border-radius:24px;background:rgba(13,110,253,.08);backdrop-filter:blur(4px)}
.card-one{width:260px;height:260px;top:10%;left:8%}
.card-two{width:180px;height:180px;right:12%;top:18%}
.card-three{width:220px;height:220px;left:18%;bottom:10%}
.modern-login-card{border:none;border-radius:28px;overflow:hidden;background:#fff}
.hero-panel{background:linear-gradient(135deg,#0d6efd,#4f8cff);color:#fff;display:flex;align-items:center}
.hero-content{padding:60px}
.hero-content h1{font-size:3rem;font-weight:800}
.hero-image{font-size:120px;text-align:center;margin-top:30px;opacity:.9}
.form-control,.form-select{border-radius:12px;padding:12px}
.btn-primary{border-radius:12px}


/* Remove right floating card blocking title/logo */
.card-two,
.floating-card.card-two,
.right-card{
    display:none !important;
}

/* Force homepage button to look like a button on mobile */
.home-btn,
a.home-btn{
    text-decoration:none !important;
    background:#0d6efd !important;
    color:#fff !important;
    border-radius:12px !important;
    padding:10px 16px !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    font-weight:600 !important;
}

.home-btn:hover,
.home-btn:focus,
.home-btn:active,
.home-btn:visited,
a.home-btn:hover,
a.home-btn:focus,
a.home-btn:active,
a.home-btn:visited{
    color:#fff !important;
    text-decoration:none !important;
}

@media (max-width:768px){
    .home-btn,
    a.home-btn{
        position:fixed !important;
        top:10px !important;
        right:10px !important;
        z-index:9999 !important;
        background:#0d6efd !important;
        color:#fff !important;
        text-decoration:none !important;
        border:none !important;
        -webkit-appearance:none !important;
        appearance:none !important;
    }
}

.hero-bg,
.floating-card,
.card-one,
.card-two,
.card-three{
display:none !important;
width:0 !important;
height:0 !important;
opacity:0 !important;
}


@media (max-width:768px){
.modern-login-card{
display:flex !important;
flex-direction:column !important;
border-radius:28px !important;
overflow:hidden !important;
}

.hero-panel{
display:flex !important;
background:linear-gradient(135deg,#0d6efd,#4f8cff) !important;
color:#fff !important;
min-height:260px !important;
width:100% !important;
align-items:center !important;
}

.hero-content{
display:block !important;
padding:32px !important;
color:#fff !important;
}

.hero-content h1,
.hero-content p,
.hero-panel h1,
.hero-panel p{
color:#fff !important;
}

.hero-image{
display:block !important;
font-size:72px !important;
text-align:center !important;
}

.home-btn,
a.home-btn{
background:#0d6efd !important;
color:#fff !important;
text-decoration:none !important;
border-radius:12px !important;
padding:10px 14px !important;
display:inline-flex !important;
}

.home-btn:hover,
.home-btn:visited,
.home-btn:focus,
.home-btn:active{
color:#fff !important;
text-decoration:none !important;
}
}


/* Password show/hide control */
.password-input-wrapper {
    width: 100%;
}
.password-input-wrapper .form-control {
    padding-right: 48px !important;
}
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    z-index: 5;
}
.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    outline: none;
}
.password-toggle-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

/* Registration form validation feedback */
.field-error {
    color: #dc3545;
    font-size: .875rem;
    margin-top: .35rem;
}
