:root {
    --primary-color: #1976D2;
    --primary-light: #64B5F6;
    --primary-dark: #0D47A1;
    --secondary-color: #03A9F4;
    --accent-color: #00BCD4;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --info-color: #2196F3;
    --light-gray: #f5f6fa;
    --mid-gray: #eaecf0;
    --dark-gray: #5e6278;
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-muted: #9e9e9e;
    --white: #ffffff;
    --black: #000000;
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --font-family: 'Poppins', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--light-gray);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    height: 100%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

    a:hover {
        color: var(--primary-dark);
    }

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-container {
    text-align: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-container p {
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sign In Page */
.sign-in-page {
    background-color: var(--light-gray);
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh;
}

.sign-in-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-shadow: none;
    background-color: var(--white);
    border-radius: 0;
}

.sign-in-image {
    height: 100vh;
    min-height: 100vh;
    background: url('/img/labstudent.png') no-repeat center/cover;
    position: relative;
    /*display: flex;*/
    align-items: center;
}

    .sign-in-image .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(13, 71, 161, 0.9), rgba(25, 118, 210, 0.7));
    }

    .sign-in-image .content {
        position: relative;
        color: var(--white);
        padding: 3rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 2;
    }

    .sign-in-image h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        line-height: 1.2;
    }

    .sign-in-image p {
        font-size: 1.125rem;
        opacity: 0.9;
        margin-bottom: 3rem;
        line-height: 1.6;
    }

.logoImg {
    width: 150px;
    margin: 0px auto;
}

.features {
    margin-top: auto;
    padding-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInLeft 0.6s ease forwards;
    opacity: 0;
}

    .feature:nth-child(1) {
        animation-delay: 0.2s;
    }

    .feature:nth-child(2) {
        animation-delay: 0.4s;
    }

    .feature:nth-child(3) {
        animation-delay: 0.6s;
    }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature .icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.375rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.feature .text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature .text p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    opacity: 0.85;
    line-height: 1.4;
}

.sign-in-form {
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--white);
    padding-top: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    /*margin-bottom: 1.5rem;*/
    /*margin-top: 1rem;*/
    justify-content: flex-start;
}

    .logo i {
        font-size: 2rem;
        margin-right: 0.75rem;
    }

.sign-in-form h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    /*text-align:center;*/
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid #ced4da;
}

    .input-group:focus-within {
        box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
        border-color: var(--primary-color);
    }

.input-group-text {
    background-color: var(--light-gray);
    border: none;
    border-right: 1px solid #ced4da;
    color: var(--text-muted);
    width: 45px;
    justify-content: center;
    border-radius: 0;
}

.form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    border-radius: 0;
    background-color: var(--white);
}

    .form-control:focus {
        box-shadow: none;
        border-color: transparent;
        background-color: var(--white);
    }

        .form-control:focus + .input-group-text,
        .input-group:focus-within .input-group-text {
            border-color: transparent;
            background-color: rgba(25, 118, 210, 0.05);
            color: var(--primary-color);
        }

.password-toggle {
    border: none;
    border-left: 1px solid #ced4da;
    background-color: var(--light-gray);
    color: var(--text-muted);
    width: 45px;
    transition: var(--transition-fast);
    border-radius: 0;
}

    .password-toggle:hover {
        color: var(--primary-color);
        background-color: rgba(25, 118, 210, 0.05);
    }

    .password-toggle:focus {
        box-shadow: none;
        border-color: transparent;
    }

.forgot-password {
    font-size: 0.8125rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition-fast);
}

    .forgot-password:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition-normal);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark), #0a3c8a);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        background: var(--mid-gray);
        color: var(--text-muted);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.divider {
    text-align: center;
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--mid-gray);
    }

    .divider span {
        padding: 0 1.5rem;
        font-size: 0.875rem;
        color: var(--text-muted);
        background-color: var(--white);
    }

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
}

.btn-google {
    background-color: #fff;
    border: 1px solid var(--mid-gray);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    font-weight: 500;
    gap: 0.75rem;
}

    .btn-google:hover {
        background-color: #f8f9fa;
        box-shadow: var(--box-shadow-sm);
        transform: translateY(-1px);
    }

.sample-login {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--mid-gray);
}

.sample-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.sample-credentials {
    border-top: 1px solid var(--mid-gray);
    padding-top: 1rem;
}

.credential-item {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 0.25rem 0;
}

    .credential-item:hover {
        background-color: rgba(25, 118, 210, 0.05);
    }

    .credential-item:last-child {
        border-bottom: none;
    }

    .credential-item small {
        display: block;
        color: var(--text-secondary);
        font-size: 0.8125rem;
    }

/* Validation Styles */
.text-danger {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: block;
}

.is-invalid {
    border-color: var(--error-color);
}

    .is-invalid:focus {
        box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.25);
    }

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        margin: auto;
        border: 2px solid transparent;
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--mid-gray);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--mid-gray);
    padding: 1rem 1.5rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    border-left: 4px solid var(--primary-color);
}

    .notification.show {
        transform: translateY(0);
        opacity: 1;
    }

    .notification.success {
        border-left-color: var(--success-color);
    }

    .notification.error {
        border-left-color: var(--error-color);
    }

    .notification.warning {
        border-left-color: var(--warning-color);
    }

.notification-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.notification.success .notification-icon {
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: var(--error-color);
}

.notification.warning .notification-icon {
    color: var(--warning-color);
}

.notification-content {
    flex: 1;
}

    .notification-content p {
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--text-primary);
    }

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    margin-left: 0.75rem;
    font-size: 1.125rem;
    transition: var(--transition-fast);
}

    .notification-close:hover {
        color: var(--text-primary);
    }

/* Focus effects */
.input-group.focused {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15) !important;
    border-color: var(--primary-color);
}
.copyfooterdiv {
    padding: 10px 45px !important;
}
.copyfooter {
    color: white !important;
}

.powerfooter {
    /*color: #1976D2 !important;*/
    font-size: 12px;
    font-weight: 500;
}

.copyfooter a {
    /*text-decoration: underline;*/
    color:white !important;
    cursor:pointer;
}

/*.powerfooter a {
    text-decoration: underline;
}*/
/* Responsive Design */
@media (max-width: 1199.98px) {
    .sign-in-image h2 {
        font-size: 2rem;
    }

    .sign-in-image .content {
        padding: 2rem;
    }

    .sign-in-form {
        padding: 2rem;
    }
    .copyfooterdiv {
        padding: 10px 35px;
    }
}

@media (max-width: 991.98px) {
    .sign-in-page {
        padding: 0;
        margin: 0;
    }

    .container {
        height: auto;
        min-height: 100vh;
    }

    .sign-in-container {
        height: auto;
        min-height: 100vh;
        box-shadow: none;
        border-radius: 0;
    }

    .sign-in-form {
        padding: 2rem 1.5rem;
        min-height: 100vh;
        height: auto;
    }

    .sign-in-image {
        display: none !important;
    }

    .logo {
        justify-content: center;
        margin-bottom: 0rem;
    }

    .sign-in-form h1 {
        text-align: center;
    }

    /*.subtitle {
        text-align: center;
        margin-bottom:1rem;
    }*/

    .logoImg {
        width: 120px;
        margin: 0px auto;
    }
    .copyfooterdiv {
        padding: 10px 10px !important;
    }
    .copyfooter {
        color: #63615f !important;
        font-size: 12px;
        font-weight: 500;
    }

    .powerfooter {
        /*color: #1976D2 !important;*/
        font-size: 12px;
        font-weight: 500;
    }

    .copyfooter a {
        /*text-decoration: underline;*/
        /*color: #0C449C !important;*/
        color: #0C449C !important;
        font-size: 12px;
        font-weight: 500;
    }

    .powerfooter a {
        /*text-decoration: underline;*/
        color: #0C449C !important;
    }
}

@media (max-width: 767.98px) {
    .sign-in-page {
        padding: 0;
        margin: 0;
    }

    .container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .sign-in-form {
        padding: 1rem 1rem;
        margin: 0;
        padding-top: 1.5rem;
    }

        .sign-in-form h1 {
            font-size: 1.75rem;
        }

    .logo {
        font-size: 1.5rem;
         margin-bottom: 0rem;
    }

        .logo i {
            font-size: 1.75rem;
        }

    .sample-login {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .credential-item small {
        font-size: 0.75rem;
    }
    .logoImg {
        width: 120px;
        margin: 0px auto;
    }
    .copyfooter {
        /*color: #1976D2 !important;*/
        font-size: 12px;
        font-weight: 500;
    }

    .powerfooter {
        /*color: #1976D2 !important;*/
        font-size: 12px;
        font-weight: 500;
    }

    /*.copyfooter a {
        text-decoration: underline;
        color: #0C449C !important;
    }*/

    .powerfooter a {
        /*text-decoration: underline;*/
        color: #0C449C !important;
    }
}

@media (max-width: 575.98px) {
    .sign-in-page {
        padding: 0;
        margin: 0;
        background-color: var(--white);
    }

    .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .sign-in-container {
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        background-color: var(--white);
    }

    .sign-in-form {
        padding: 1rem;
        margin: 0;
        background-color: var(--white);
        box-shadow: none;
        border-radius: 0;
        padding-top: 1.5rem;
    }

        .sign-in-form h1 {
            font-size: 1.5rem;
        }

    .modal-dialog {
        margin: 1rem;
    }

    .notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .sample-login {
        margin-left: 0;
        margin-right: 0;
    }
    .logoImg {
        width: 120px;
        margin: 0px auto;
    }
    .copyfooterdiv {
        padding: 10px 10px;
    }
    .copyfooter {
        /*color: #1976D2 !important;*/
        font-size: 12px;
        font-weight: 500;
    }

    .powerfooter {
        /*color: #1976D2 !important;*/
        font-size: 12px;
        font-weight: 500;
    }
    }

    /*.copyfooter a {
        text-decoration: underline;
        color: #0C449C !important;
    }*/

    .powerfooter a {
        /*text-decoration: underline;*/
        color: #0C449C !important;
    }
}

/* Ultra small screens */
@media (max-width: 360px) {
    .sign-in-form {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .sign-in-form h1 {
        font-size: 1.25rem;
    }

    .btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    .logoImg {
        width: 120px;
        margin: 0px auto;
    }

    .copyfooter {
        color: #63615f !important;
        font-size: 12px;
        font-weight: 500;
    }

    .powerfooter {
        color: #1976D2 !important;
    }

    /*.copyfooter a {
        text-decoration: underline;
        color: #0C449C !important;
    }*/

    .powerfooter a {
        /*text-decoration: underline;*/
        color: #0C449C !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-gray: #1a1a1a;
        --white: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --text-muted: #808080;
        --mid-gray: #404040;
    }
}
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.captcha-image {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    max-width: 200px;
    height: 60px;
}

.captcha-refresh {
    cursor: pointer;
    font-size: 1.5rem;
    color: #0d6efd;
    transition: transform 0.3s;
}

    .captcha-refresh:hover {
        transform: rotate(180deg);
    }

@media (max-width: 768px) {
    .sign-in-form {
        padding: 0rem 1rem !important;
    }
}

/* OTP UI */
.otp-wrapper {
    text-align: center;
    /* margin-top: 30px; */
    display: none;
}

.otp-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.otp-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.otp-box {
    width: 50px;
    height: 55px;
    font-size: 22px;
    text-align: center;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    outline: none;
}

    .otp-box:focus {
        border-color: var(--primary-color);
    }

.otp-actions a {
    /* color: #28a745; */
    font-weight: 500;
    text-decoration: none;
}

#verifyBtn:disabled {
    background-color: #dcdcdc;
    border-color: #dcdcdc;
    cursor: not-allowed;
}

.form-select {
    padding: .75rem;
}

    .form-select:focus {
        /* padding: .75rem; */
        border: none;
        box-shadow: none;
    }

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display:none;
}
.sign-in-form {
    padding-top: 60px !important;
}
    .sign-in-form h1 {
        text-align: center;
        margin-top: 15px;
    }
    .sign-in-form p .subtitle {
        text-align: center;
        margin-bottom: 2rem;
    }
#userSection .form-label span {
    color: red;
}
#userTypeSection .form-label span {
    color: red;
}
#userType {
    border: none;
}
#otpSection {
    display: none;
}
#resendOtp {
    display: none;
    text-decoration: none;
    color: var(--primary-color);
    font-size:15px;
}
.copyfooterdiv {
    justify-content: space-between;
    color: white !important;
    display: flex;
    bottom: 0;
    position: absolute;
    font-size: 16px;
}
