﻿body, html {
    height: 100%;
    margin: 0;
    font-family: Roboto, Arial;
}

.login-wrapper {
    height: 100vh;
}

.brand-section {
    color: white;
    padding: 3rem 3rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: linear-gradient(135deg, #224abe, #4e73df);
}

.brand-icon {
    height: 60px;
    width: 60px;
    border-radius: 14px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.login-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-section {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: #f5f5f5;
}

.login-div {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.login-footer {
    text-align: center;
}

.footer-text {
    display: inline-block;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
}

.footer-text::after {
    content: "";
    display: block;
    width: 80%;
    height: 3px;
    background: orange;
    margin: 0 auto;
    margin-top: 3px;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.toggle-password:hover {
    color: orange;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 9999s ease-in-out 0s;
}

.login-left {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.greeting-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    animation: floatText 3s ease-in-out infinite;
}

.greeting-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60px;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg, #0d6efd, #6ea8fe);
}

@keyframes floatText {
    0% {
        transform: translateY(0px);
        text-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    50% {
        transform: translateY(-6px);
        text-shadow: 0 10px 20px rgba(0,0,0,0.12);
    }

    100% {
        transform: translateY(0px);
        text-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
}

.quote-box footer {
    display: block;
    font-size: 0.75rem;
    font-style: italic;
    text-align: right;
}

/* Preloader container with glassmorphism */
.preloader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    /*    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);*/
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: auto;
}
/* Circle wrapper */
.circle-wrapper {
    position: relative;
    width: 11.25vw;
    height: 11.25vw;
    max-width: 105px;
    max-height: 105px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Rotating blue circle */
.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0.3vw solid #ccc;
    border-top: 0.3vw solid #007bff;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
    box-sizing: border-box;
}
/* PTS text with pulse animation */
.circle-text {
    font-size: 1vw;
    font-weight: 900;
    color: #000;
    font-family: Roboto,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 2px;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}
/* Circle rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* PTS pulsing animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* =========================================
    Floating Form Group
    ========================================= */
.form-group-float {
    position: relative;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
/* Input / Select control */
.form-group-float .form-control-float {
    width: 100%;
    min-height: 2.55rem;
    padding: .72rem .85rem .22rem;
    border: 1px solid #d7e0ee;
    border-radius: .55rem;
    outline: 0;
    background: #fff;
    color: #000;
    font-size: .78rem;
    font-weight: 450;
    line-height: 1.2;
    box-shadow: 0 .1rem .22rem rgba(27, 45, 80, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
/* Select control */
.form-group-float select.form-control-float {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.55rem;
    cursor: pointer;
}
/* Label always remains on top */
.form-group-float .form-label-float {
    position: absolute;
    top: 0;
    left: .85rem;
    z-index: 2;
    margin: 0;
    padding: 0 .25rem;
    transform: translateY(-50%);
    background: #fff;
    color: #34435f;
    font-size: .7rem;
    font-weight: 550;
    line-height: 1;
    letter-spacing: .01em;
    pointer-events: none;
    transition: color .18s ease;
}
/* Required field mark */
.form-group-float .form-label-float.required::after {
    content: " *";
    color: #dc4c5b;
}
/* Focus state */
.form-group-float .form-control-float:focus {
    border-color: #7084c7;
    background: #fcfdff;
    box-shadow: 0 0 0 .18rem rgba(92, 111, 186, .14);
}

.form-group-float .form-control-float:focus ~ .form-label-float {
    color: #4d63a6;
}

.form-group-float select.form-control-float {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    padding-right: .85rem;
}

.form-group-float > .form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 1.5rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23657694' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right .85rem center !important;
    background-size: 1rem .75rem !important;
}
/* Is custom icon rule ko remove kar dein */
.form-group-float:has(select)::after {
    display: none;
}
/* Validation states */
.form-group-float .form-control-float.is-invalid {
    border-color: #db5a67;
    background: #fffafb;
}

.form-group-float .form-control-float.is-invalid ~ .form-label-float {
    color: #cf3d4c;
}

.form-group-float .form-control-float.is-valid {
    border-color: #3da36e;
}

.form-group-float .form-control-float.is-valid ~ .form-label-float {
    color: #238251;
}

/* =====================================================
   BOOTSTRAP BACKGROUND & TEXT COLORS — MDB STYLE
===================================================== */

/* =====================
   BACKGROUND COLORS
===================== */
.bg-primary {
    background: linear-gradient(135deg, #3f51b5, #303f9f) !important;
    color: #fff !important;
    box-shadow: 0 .22rem .55rem rgba(48, 63, 159, .24);
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #4f5962) !important;
    color: #fff !important;
    box-shadow: 0 .22rem .55rem rgba(79, 89, 98, .22);
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #16833a) !important;
    color: #fff !important;
    box-shadow: 0 .22rem .55rem rgba(22, 131, 58, .22);
}

.bg-danger {
    background: linear-gradient(135deg, #e8505b, #c62828) !important;
    color: #fff !important;
    box-shadow: 0 .22rem .55rem rgba(198, 40, 40, .22);
}

.bg-warning {
    background: linear-gradient(135deg, #ffb300, #f57c00) !important;
    color: #fff !important;
    box-shadow: 0 .22rem .55rem rgba(245, 124, 0, .22);
}

.bg-info {
    background: linear-gradient(135deg, #29b6f6, #0277bd) !important;
    color: #fff !important;
    box-shadow: 0 .22rem .55rem rgba(2, 119, 189, .22);
}

.bg-dark {
    background: linear-gradient(135deg, #37474f, #1f2b31) !important;
    color: #fff !important;
    box-shadow: 0 .22rem .55rem rgba(31, 43, 49, .25);
}

.bg-light {
    background: linear-gradient(135deg, #f8faff, #edf2f7) !important;
    color: #40516a !important;
    box-shadow: 0 .16rem .45rem rgba(47, 67, 97, .08);
}

.bg-white {
    background: #fff !important;
    color: #40516a !important;
    box-shadow: 0 .16rem .45rem rgba(47, 67, 97, .07);
}

/* =====================
   TEXT COLORS
===================== */
.text-primary {
    color: #3449ad !important;
}

.text-secondary {
    color: #56616b !important;
}

.text-success {
    color: #198a42 !important;
}

.text-danger {
    color: #c52d38 !important;
}

.text-warning {
    color: #d77900 !important;
}

.text-info {
    color: #0879b9 !important;
}

.text-dark {
    color: #273641 !important;
}

.text-light {
    color: #f5f8fc !important;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: #718096 !important;
}

/* =====================
   TEXT HOVER FOR LINKS
===================== */
a.text-primary:hover,
a.text-primary:focus {
    color: #243990 !important;
}

a.text-secondary:hover,
a.text-secondary:focus {
    color: #3f4852 !important;
}

a.text-success:hover,
a.text-success:focus {
    color: #106c31 !important;
}

a.text-danger:hover,
a.text-danger:focus {
    color: #981f29 !important;
}

a.text-warning:hover,
a.text-warning:focus {
    color: #ad5f00 !important;
}

a.text-info:hover,
a.text-info:focus {
    color: #055d91 !important;
}


/* =====================================================
   UNIVERSAL BUTTON STYLE
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.15rem;
    padding: .4rem .75rem;
    border-radius: .48rem;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background-color .16s ease, border-color .16s ease;
}

    .btn i {
        font-size: .82rem;
        line-height: 1;
    }

    .btn:hover,
    .btn:focus {
        text-decoration: none !important;
        transform: translateY(-1px);
        box-shadow: 0 .22rem .5rem rgba(35, 50, 82, .14);
    }

    .btn:focus-visible {
        outline: 2px solid rgba(69, 105, 177, .42);
        outline-offset: 2px;
    }

    .btn:active {
        transform: translateY(0) scale(.98);
        box-shadow: none;
    }

    .btn:disabled,
    .btn.disabled {
        pointer-events: none;
        cursor: not-allowed;
        opacity: .55;
        box-shadow: none;
    }