/* =========================================================
   STUDENT PORTAL LOGIN PAGE - student_CustomStyleV1.css
   Designed for the current youLogin.jsp single-card layout
   ========================================================= */

:root {
    --primary: #0062cc;
    --primary-dark: #17336f;
    --primary-mid: #2f80d1;
    --primary-soft: #f5f9ff;
    --border-soft: #d9e7ff;
    --text-dark: #2f3e4d;
    --text-muted: #5b6b7c;
    --gold: #e0ae00;
    --gold-dark: #c99b00;
    --heading-blue: #132d68;
}

/* Reset and page defaults */
html {
    min-height: 100%;
    width: 100%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.portal-body.student-login-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: #eef2f7;
}

/* Full-page campus background */
.student-login-background {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 35px 16px 76px;
    background-image:
        linear-gradient(rgba(15, 30, 50, 0.28), rgba(15, 30, 50, 0.42)),
        url("../LandingPage/Images/campus1.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* Full-page campus background */
.parent-login-background {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 35px 16px 76px;
    background-image:
        linear-gradient(rgba(15, 30, 50, 0.28), rgba(15, 30, 50, 0.42)),
        url("../LandingPage/Images/parent1.JPG");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Login panel */
.student-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: auto;
    padding: 32px 34px 28px;
    overflow: visible;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Keep the university logo at a controlled size */
.student-login-card img.student-login-logo {
    display: block;
    width: 100px !important;
    height: 100px !important;
    min-width: 0;
    max-width: 100px !important;
    min-height: 0;
    max-height: 100px !important;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 15px;
}

.student-login-heading {
    margin: 0 0 26px;
    color: var(--heading-blue);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

/* Labels and inputs */
.student-login-card .form-label {
    display: block;
    margin-bottom: 7px;
    color: #25354b;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.student-login-card .form-control {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    color: #2d3748;
    background-color: #fff;
    border: 1px solid #d5dce7;
    border-radius: 9px;
    font-size: 14px;
    box-shadow: none;
}

.student-login-card .form-control::placeholder {
    color: #929baa;
    opacity: 1;
}

.student-login-card .form-control:focus {
    border-color: rgba(0, 98, 204, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 98, 204, 0.12);
    outline: 0;
}

/* Password input and eye button */
.student-login-card .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.student-login-card .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.student-login-card .input-group > .btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    color: #52627a;
    background: #fff;
    border: 1px solid #d5dce7;
    border-left: 0;
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
}

.student-login-card .input-group > .btn-outline-secondary:hover,
.student-login-card .input-group > .btn-outline-secondary:focus {
    color: var(--heading-blue);
    background: #f5f7fa;
}

.student-login-card .invalid-feedback {
    text-align: left;
    font-size: 12px;
}


/* Login Button - Matches Dashboard card-header-2 */
.student-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 20px;

    color: #ffffff !important;
    background: #2f80d1;
    border: 1px solid #2f80d1;
    border-radius: 9px;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;

    box-shadow: 0 8px 18px rgba(47, 128, 209, 0.24);

    transition: background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

/* Hover - Matches Navbar Blue */
.student-login-button:hover {
    color: #ffffff !important;
    background: #0062cc;
    border-color: #0062cc;
    box-shadow: 0 10px 22px rgba(0, 98, 204, 0.28);
}

/* Keyboard Focus */
.student-login-button:focus-visible {
    outline: 3px solid rgba(0, 98, 204, 0.30);
    outline-offset: 3px;
}

/* Click */
.student-login-button:active {
    color: #ffffff !important;
    background: #004f9f;
    border-color: #004f9f;
    transform: translateY(1px);
}



/* Forgot password */
.student-forgot-link {
    margin-top: 12px;
}

.student-forgot-link form {
    margin: 0;
}

.student-forgot-link .btn-link {
    padding: 4px 8px;
    color: #245a94;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.student-forgot-link .btn-link:hover,
.student-forgot-link .btn-link:focus {
    color: #123b69;
    text-decoration: underline;
}

/* First-time login note */
.student-login-note {
    margin-top: 18px;
    padding-top: 15px;
    color: #657184;
    border-top: 1px solid #e6eaf0;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

/* Footer stays near the bottom of the background */
.student-login-footer {
    position: absolute;
    right: 16px;
    bottom: 20px;
    left: 16px;
    z-index: 1;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.student-login-footer strong {
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* Bootstrap modal compatibility */
#alertLoginModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
}

#alertLoginModal .modal-header {
    background: #f7f9fc;
    border-bottom: 1px solid #e7ebf1;
}

#alertLoginModal .modal-title {
    color: var(--heading-blue);
    font-weight: 700;
}

/* Tablet and smaller screens */
@media (max-width: 767.98px) {
    .student-login-background {
        padding: 28px 16px 72px;
        background-attachment: scroll;
    }

    .student-login-card {
        max-width: 420px;
        padding: 28px 26px 24px;
    }

    .student-login-heading {
        font-size: 25px;
        margin-bottom: 22px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .student-login-background {
        justify-content: center;
        padding: 20px 12px 68px;
    }

    .student-login-card {
        max-width: 100%;
        padding: 24px 19px 21px;
        border-radius: 16px;
    }

    .student-login-card img.student-login-logo {
        width: 82px !important;
        height: 82px !important;
        max-width: 82px !important;
        max-height: 82px !important;
        margin-bottom: 12px;
    }

    .student-login-heading {
        font-size: 23px;
        margin-bottom: 21px;
    }

    .student-login-note {
        font-size: 11.5px;
    }

    .student-login-footer {
        bottom: 12px;
        font-size: 11px;
    }
}

/* Short screens / landscape phones */
@media (max-height: 650px) and (min-width: 481px) {
    .student-login-background {
        justify-content: flex-start;
        padding-top: 20px;
        padding-bottom: 65px;
    }

    .student-login-card {
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .student-login-card img.student-login-logo {
        width: 75px !important;
        height: 75px !important;
        max-width: 75px !important;
        max-height: 75px !important;
    }

    .student-login-heading {
        margin-bottom: 18px;
    }
}

/* Login Status Modal - Blue Header */

/* Login Status Modal - Dashboard Blue Theme */
#alertLoginModal .modal-content {
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#alertLoginModal .modal-header {
    padding: 16px 20px;
    color: #ffffff;
    background: #2f80d1;
    border-bottom: none;
}

#alertLoginModal .modal-title {
    color: #ffffff;
    font-weight: 700;
}

/* White close icon */
#alertLoginModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

#alertLoginModal .modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}



/* =========================================================
   FORGOT PASSWORD PAGE
   Matches Student Login design and dashboard blue theme
========================================================= */

.forgot-password-page {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 35px 16px 76px;
    background-image:
        linear-gradient(
        rgba(15, 30, 50, 0.28),
        rgba(15, 30, 50, 0.42)
        ),
        url("../LandingPage/Images/campus1.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.parent-Otp-verify-page {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 35px 16px 76px;
    background-image:
        linear-gradient(
        rgba(15, 30, 50, 0.28),
        rgba(15, 30, 50, 0.42)
        ),
        url("../LandingPage/Images/parent1.JPG");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.forgot-password-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.forgot-password-wrapper .login-card {
    width: 100%;
    padding: 32px 34px 28px;
    box-sizing: border-box;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.forgot-password-wrapper .login-logo {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 15px;
}

.forgot-password-wrapper .login-title {
    margin: 0 0 16px;
    color: #132d68;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.forgot-password-wrapper .description {
    margin-bottom: 24px;
    color: #657184;
    font-size: 13px;
    line-height: 1.6;
}

.forgot-password-wrapper .form-label {
    display: block;
    margin-bottom: 7px;
    color: #25354b;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.forgot-password-wrapper .form-control {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    color: #2d3748;
    background-color: #ffffff;
    border: 1px solid #d5dce7;
    border-radius: 9px;
    font-size: 14px;
    box-shadow: none;
}

.forgot-password-wrapper .form-control::placeholder {
    color: #929baa;
    opacity: 1;
}

.forgot-password-wrapper .form-control:focus {
    border-color: rgba(0, 98, 204, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 98, 204, 0.12);
    outline: 0;
}

/* Send OTP button */
.forgot-password-wrapper .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 20px;
    color: #ffffff !important;
    background: #2f80d1;
    border: 1px solid #2f80d1;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: 0 8px 18px rgba(47, 128, 209, 0.24);
    transition: background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.forgot-password-wrapper .btn-login:hover {
    color: #ffffff !important;
    background: #0062cc;
    border-color: #0062cc;
    box-shadow: 0 10px 22px rgba(0, 98, 204, 0.28);
}

.forgot-password-wrapper .btn-login:focus-visible {
    outline: 3px solid rgba(0, 98, 204, 0.30);
    outline-offset: 3px;
}

.forgot-password-wrapper .btn-login:active {
    color: #ffffff !important;
    background: #004f9f;
    border-color: #004f9f;
    transform: translateY(1px);
}

.forgot-password-wrapper #statusMessage {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.forgot-password-wrapper .back-login {
    display: inline-block;
    margin-top: 22px;
    color: #245a94;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password-wrapper .back-login:hover,
.forgot-password-wrapper .back-login:focus {
    color: #123b69;
    text-decoration: underline;
}

.forgot-password-footer {
    position: absolute;
    right: 16px;
    bottom: 20px;
    left: 16px;
    z-index: 1;
    padding: 0;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.forgot-password-footer strong {
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* Responsive layout */
@media (max-width: 767.98px) {
    .forgot-password-page {
        padding: 28px 16px 72px;
        background-attachment: scroll;
    }

    .forgot-password-wrapper {
        max-width: 420px;
    }

    .forgot-password-wrapper .login-card {
        padding: 28px 26px 24px;
    }

    .forgot-password-wrapper .login-title {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .forgot-password-page {
        padding: 20px 12px 68px;
    }

    .forgot-password-wrapper .login-card {
        padding: 24px 19px 21px;
        border-radius: 16px;
    }

    .forgot-password-wrapper .login-logo {
        width: 82px;
        height: 82px;
        margin-bottom: 12px;
    }

    .forgot-password-wrapper .login-title {
        font-size: 23px;
    }

    .forgot-password-footer {
        bottom: 12px;
        font-size: 11px;
    }
}


/* OTP verification page */
.otp-page .otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

.otp-page .otp-help {
    color: #6c757d;
    font-size: 0.9rem;
}

.otp-page .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Align password eye button inside the input */
.forgot-password-wrapper .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
}

.forgot-password-wrapper .input-group > .form-control {
    flex: 1 1 0% !important;
    width: 1% !important;
    min-width: 0 !important;
    border-radius: 8px 0 0 8px !important;
}

.forgot-password-wrapper .input-group > .password-toggle {
    display: flex !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin-left: -1px !important;
    border-radius: 0 8px 8px 0 !important;
}

.forgot-password-wrapper .input-group > .form-control:focus {
    z-index: 3;
}

.forgot-password-wrapper .input-group > .password-toggle i {
    font-size: 1rem;
    line-height: 1;
}

.reset-register-number {
    background: #f1f7ff;
    border: 1px solid #c9def5;
    border-radius: 8px;
    padding: 12px 15px;
    color: #174a7c;
    overflow-wrap: anywhere;
}


/* Password rules - softer, readable colors */
.forgot-password-wrapper .password-rules small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 500;
    text-shadow: none;
}

/* Rules not yet satisfied */
.forgot-password-wrapper .password-rules .text-danger {
    color: #b54747 !important;
}

/* Rules successfully satisfied */
.forgot-password-wrapper .password-rules .text-success {
    color: #247447 !important;
}

/* Confirmation message */
.forgot-password-wrapper #confirmPasswordStatus .text-muted {
    color: #526174 !important;
}

.forgot-password-wrapper #confirmPasswordStatus .text-danger {
    color: #b54747 !important;
}

.forgot-password-wrapper #confirmPasswordStatus .text-success {
    color: #247447 !important;
}


.password-toggle {
    cursor: pointer;
}


/* =========================================================
   SHARED TRANSPARENT GLASS CARD - ALL PASSWORD PAGES
========================================================= */

.student-login-card,
.forgot-password-wrapper .login-card {
    background: rgba(255, 255, 255, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   CLEAR, READABLE TEXT
========================================================= */

.student-login-note,
.forgot-password-wrapper .description,
.forgot-password-wrapper .otp-help,
.forgot-password-wrapper .password-rules small,
.forgot-password-wrapper #confirmPasswordStatus,
.forgot-password-wrapper #otpStatus,
.forgot-password-wrapper #resetPasswordStatus {
    color: #344767;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* Password rule status colors remain meaningful */
.forgot-password-wrapper .password-rules .text-danger {
    color: #dc3545 !important;
}

.forgot-password-wrapper .password-rules .text-success {
    color: #198754 !important;
}

/* Links */
.student-forgot-link .btn-link,
.forgot-password-wrapper .back-login {
    color: #0056a6;
    font-weight: 600;
    text-decoration: none;
}

.student-forgot-link .btn-link:hover,
.forgot-password-wrapper .back-login:hover {
    color: #123b69;
    text-decoration: underline;
}
