@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.min.css");

:root {
    --meshkat-navy: #102a43;
    --meshkat-blue: #1769aa;
    --meshkat-teal: #159a9c;
    --meshkat-gold: #d7a84b;
    --meshkat-cream: #f8f6f1;
}

* {
    box-sizing: border-box;
}

.meshkat-login {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    color: var(--meshkat-navy);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(21, 154, 156, .25), transparent 28%),
        linear-gradient(135deg, #eaf3f5 0%, #f8f6f1 48%, #e8eef5 100%);
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr);
    width: min(1080px, calc(100% - 48px));
    min-height: 650px;
    margin: 6vh auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 30px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 30px 80px rgba(16, 42, 67, .18);
    backdrop-filter: blur(18px);
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 42px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(150deg, #102a43 0%, #145374 55%, #159a9c 140%);
}

.login-brand-panel::after {
    position: absolute;
    right: -90px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .04), 0 0 0 58px rgba(255, 255, 255, .03);
}

.brand-mark {
    position: relative;
    display: grid;
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--meshkat-gold);
    font-size: 42px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 27px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .16);
}

.institute-logo {
    width: 178px;
    height: 178px;
    margin-bottom: 28px;
    object-fit: contain;
    border: 7px solid rgba(255, 255, 255, .95);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22), 0 0 0 9px rgba(255, 255, 255, .12);
}
.brand-mark-glow {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--meshkat-gold);
    filter: blur(24px);
    opacity: .35;
}

.brand-mark i {
    position: relative;
}

.brand-eyebrow,
.brand-caption {
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: linear-gradient(110deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 6px 18px rgba(5, 35, 27, .12), inset 0 1px 0 rgba(255, 255, 255, .16);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .12);
}

.login-brand-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(3rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -.06em;
}

.login-brand-panel p {
    max-width: 260px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    line-height: 2;
}

.brand-divider {
    width: 52px;
    height: 3px;
    margin: 28px 0 16px;
    border-radius: 99px;
    background: var(--meshkat-gold);
}

.login-form-panel {
    display: flex;
    align-items: center;
    padding: 60px clamp(34px, 7vw, 86px);
    background: rgba(255, 255, 255, .78);
}

.login-form-content {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.mobile-brand {
    display: none;
}

.form-kicker {
    color: var(--meshkat-teal);
    font-size: .82rem;
    font-weight: 700;
}

.form-heading h2 {
    margin: 9px 0 10px;
    color: var(--meshkat-navy);
    font-size: 1.7rem;
    font-weight: 800;
}

.form-heading p {
    margin-bottom: 34px;
    color: #718096;
    font-size: .86rem;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #334e68;
    font-size: .82rem;
    font-weight: 600;
}

.field-control {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d9e2ec;
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.field-control:focus-within {
    border-color: var(--meshkat-teal);
    box-shadow: 0 0 0 4px rgba(21, 154, 156, .12);
}

.field-control i {
    color: #829ab1;
    font-size: 1.1rem;
}

.field-control input {
    width: 100%;
    padding: 4px 0;
    color: var(--meshkat-navy);
    font: inherit;
    font-size: .84rem;
    border: 0;
    outline: 0;
}

.field-control input::placeholder {
    color: #9fb3c8;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin-top: 28px;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(100deg, var(--meshkat-blue), var(--meshkat-teal));
    box-shadow: 0 12px 24px rgba(23, 105, 170, .22);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(23, 105, 170, .3);
}

.login-footer {
    margin-top: 34px;
    color: #829ab1;
    font-size: .75rem;
    text-align: center;
}

.login-footer i {
    margin-left: 5px;
    color: var(--meshkat-teal);
}

.login-validation,
.field-error {
    color: #c53030;
    font-size: .75rem;
}

.login-validation {
    margin-bottom: 14px;
}

.login-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .35;
}

.login-orb-one {
    top: -90px;
    right: 7%;
    width: 190px;
    height: 190px;
    background: var(--meshkat-gold);
}

.login-orb-two {
    bottom: -120px;
    left: 8%;
    width: 240px;
    height: 240px;
    background: var(--meshkat-teal);
}

@media (max-width: 760px) {
    .login-shell {
        display: block;
        width: min(480px, calc(100% - 28px));
        min-height: auto;
        margin: 28px auto;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: calc(100vh - 56px);
        padding: 42px 28px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 48px;
        color: var(--meshkat-navy);
        font-size: 1.2rem;
        font-weight: 800;
    }

    .mobile-brand-logo {
        width: 52px;
        height: 52px;
        object-fit: contain;
        flex: none;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(16, 42, 67, .15);
    }

    .mobile-brand-icon {
        display: grid;
        width: 38px;
        height: 38px;
        color: var(--meshkat-gold);
        place-items: center;
        border-radius: 11px;
        background: var(--meshkat-navy);
    }
}
