/* ================================
   DISHA COMPUTER EDUCATION
   STUDENT LOGIN - PROFESSIONAL UI
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background:
        linear-gradient(rgba(2, 10, 20, 0.72), rgba(5, 5, 25, 0.82)),
        url("https://transmitter.ieee.org/wp-content/uploads/2020/08/GettyImages-165773692111-1200x630.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
    overflow-x: hidden;
}

/* ================================
   NAVBAR
================================ */

nav {
    width: 100%;
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 28px;

    background: rgba(5, 10, 20, 0.88);
    border-bottom: 1px solid rgba(0, 255, 255, 0.25);

    position: relative;
    z-index: 10;

    backdrop-filter: blur(12px);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;

    color: #00f6ff;

    text-shadow:
        0 0 5px #00f6ff,
        0 0 15px #00f6ff;
}

/* NAV LINKS */

nav ul {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;

    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #00f6ff;

    text-shadow:
        0 0 8px #00f6ff,
        0 0 18px #00f6ff;
}

/* ================================
   MAIN LOGIN AREA
================================ */

.login-container {
    width: 100%;
    min-height: calc(100vh - 62px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 20px;
}

/* ================================
   LOGIN CARD
================================ */

.login-box {
    width: min(470px, 94vw);

    padding: 42px 38px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(25, 35, 48, 0.92),
            rgba(15, 20, 35, 0.94)
        );

    border: 1px solid rgba(0, 240, 255, 0.35);

    box-shadow:
        0 0 25px rgba(0, 240, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(18px);

    text-align: center;

    animation: cardEntry 0.8s ease;
}

@keyframes cardEntry {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================
   TITLE
================================ */

.login-box h1 {
    font-size: clamp(30px, 5vw, 42px);

    margin-bottom: 10px;

    color: white;

    text-shadow:
        0 0 8px rgba(0, 240, 255, 0.4);
}

.login-box p {
    color: #d9e4ec;

    line-height: 1.5;

    margin-bottom: 30px;
}

/* ================================
   FORM
================================ */

.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 18px;

    text-align: left;
}

.input-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    color: #8ffaff;

    font-weight: 600;
}

.input-group input {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border-radius: 10px;

    border: 1px solid rgba(0, 240, 255, 0.25);

    outline: none;

    background: rgba(2, 9, 17, 0.85);

    color: white;

    font-size: 15px;

    transition: 0.3s;
}

.input-group input::placeholder {
    color: #71808c;
}

.input-group input:focus {
    border-color: #00f6ff;

    box-shadow:
        0 0 8px rgba(0, 246, 255, 0.45),
        0 0 20px rgba(0, 246, 255, 0.15);

    transform: translateY(-1px);
}

/* ================================
   LOGIN BUTTON
================================ */

.login-btn {
    width: 100%;

    height: 52px;

    margin-top: 8px;

    border: none;

    border-radius: 11px;

    background: linear-gradient(
        90deg,
        #006eff,
        #00d9ff
    );

    color: #001018;

    font-size: 16px;

    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s;

    box-shadow:
        0 0 10px rgba(0, 210, 255, 0.35);
}

/* HOVER = CYBER EFFECT */

.login-btn:hover {
    transform: translateY(-3px) scale(1.01);

    background: linear-gradient(
        90deg,
        #00f6ff,
        #0077ff
    );

    box-shadow:
        0 0 10px #00f6ff,
        0 0 25px #00f6ff,
        0 0 45px rgba(0, 119, 255, 0.7);
}

.login-btn:active {
    transform: scale(0.97);
}

/* ================================
   FORGOT PASSWORD
================================ */

.forgot-password {
    display: inline-block;

    margin-top: 16px;

    color: #00f6ff;

    font-weight: 600;

    text-decoration: none;

    transition: 0.3s;
}

.forgot-password:hover {
    color: white;

    text-shadow:
        0 0 8px #00f6ff,
        0 0 18px #00f6ff;
}

/* ================================
   REGISTER
================================ */

.register-text {
    margin-top: 25px;

    color: #d5dce2;
}

.register-text a {
    color: #b400ff;

    font-weight: 700;

    text-decoration: none;

    transition: 0.3s;
}

.register-text a:hover {
    color: #00f6ff;

    text-shadow:
        0 0 8px #00f6ff,
        0 0 15px #00f6ff;
}

/* ================================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 600px) {

    nav {
        padding: 10px 15px;
    }

    .logo {
        font-size: 14px;
    }

    nav ul {
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    .login-container {
        min-height: calc(100vh - 60px);

        padding: 25px 12px;
    }

    .login-box {
        width: 100%;

        padding: 32px 20px;

        border-radius: 20px;
    }

    .login-box h1 {
        font-size: 30px;
    }

    .login-box p {
        font-size: 14px;
    }

    .input-group input {
        height: 48px;
    }

    .login-btn {
        height: 50px;
    }
}

/* ================================
   VERY SMALL MOBILE
================================ */

@media (max-width: 380px) {

    .logo {
        font-size: 12px;
    }

    nav ul {
        gap: 8px;
    }

    nav a {
        font-size: 11px;
    }

    .login-box {
        padding: 28px 16px;
    }

    .login-box h1 {
        font-size: 27px;
    }
}
/* =================================
   FINAL RESPONSIVE FIX
================================= */

.teacher-login-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:130px;
    height:40px;

    padding:0 16px;

    border:1px solid rgba(0,246,255,.45);
    border-radius:9px;

    background:rgba(0,20,35,.75);

    color:#00f6ff !important;
    text-decoration:none;

    font-size:13px;
    font-weight:700;

    transition:.3s;
}

.teacher-login-btn:hover{
    background:#00f6ff;

    color:#001018 !important;

    box-shadow:
        0 0 8px #00f6ff,
        0 0 20px #00f6ff,
        0 0 35px rgba(0,246,255,.5);

    transform:translateY(-2px);
}


/* ================================
   DESKTOP
================================ */

@media(min-width:900px){

    .login-container{
        padding-top:55px;
        padding-bottom:55px;
    }

    .login-box{
        max-width:450px;
    }
}


/* ================================
   TABLET
================================ */

@media(max-width:899px){

    nav{
        padding:10px 18px;
    }

    .login-container{
        padding:35px 16px;
    }
}


/* ================================
   MOBILE
================================ */

@media(max-width:600px){

    nav{
        flex-wrap:wrap;
        gap:10px;
    }

    nav ul{
        order:3;
        width:100%;
        justify-content:center;
    }

    .teacher-login-btn{
        min-width:105px;
        height:36px;
        padding:0 10px;
        font-size:11px;
    }

    .login-container{
        min-height:auto;
        padding:30px 12px 45px;
    }

    .login-box{
        width:100%;
        max-width:430px;
        padding:28px 20px;
    }

    .login-box h1{
        font-size:29px;
    }
}


/* ================================
   VERY SMALL SCREEN
================================ */

@media(max-width:380px){

    nav ul{
        gap:8px;
    }

    nav ul a{
        font-size:11px;
    }

    .teacher-login-btn{
        min-width:95px;
        font-size:10px;
    }

    .login-box{
        padding:25px 16px;
    }
}
/* ================================
   LOGIN BUTTON - HACKER EFFECT
================================ */

#loginBtn {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 52px;
    margin-top: 18px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #0066ff,
        #00d9ff,
        #0066ff
    );

    background-size: 200% 100%;

    color: #001018;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;

    cursor: pointer;

    box-shadow:
        0 0 10px #00d9ff,
        0 0 25px rgba(0, 217, 255, 0.5);

    transition: all 0.25s ease;
}

/* Moving light */
#loginBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.7),
        transparent
    );

    transform: skewX(-25deg);
}

/* Hover */
#loginBtn:hover {
    transform: translateY(-3px) scale(1.02);

    background-position: 100% 0;

    box-shadow:
        0 0 12px #00eaff,
        0 0 30px #00eaff,
        0 0 60px rgba(0, 234, 255, 0.6);

    color: #ffffff;
}

/* Light scanning effect */
#loginBtn:hover::before {
    animation: loginScan 0.7s linear;
}

/* Click / Press */
#loginBtn:active {
    transform: scale(0.96);

    box-shadow:
        0 0 8px #00eaff,
        0 0 20px #00eaff;
}

/* Moving gradient continuously */
#loginBtn:hover {
    animation: loginPulse 1.2s infinite alternate;
}

@keyframes loginScan {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

@keyframes loginPulse {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.35);
    }
}
