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

body[data-path="login"] {
    margin: 0;
    overflow: hidden;
    background: #f7fbfd;
    color: #0b2044;
}

body[data-path="login"] .web-footer,
body[data-path="login"] .page-breadcrumbs,
body[data-path="login"] .page-header-wrapper,
body[data-path="login"] .page-footer {
    display: none !important;
}

body[data-path="login"] .page-content-wrapper,
body[data-path="login"] main.container,
body[data-path="login"] .page_content {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.ayira-login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(560px, 52.5%) minmax(560px, 47.5%);
    overflow: hidden;
    font-family: var(--font-stack, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.ayira-login-brand {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(42px, 6vh, 74px) clamp(54px, 6vw, 94px) 38px;
    overflow: hidden;
    background-color: #041a3a;
    background-image: url("/assets/frappe/images/ayira_login/dot-pattern.svg"), url("/assets/frappe/images/ayira_login/brand-arc.svg");
    background-repeat: no-repeat;
    background-position: 78% 3%, right bottom;
    background-size: 340px auto, 78% auto;
    color: #fff;
}

.ayira-brand-content,
.ayira-login-brand footer {
    position: relative;
    z-index: 1;
}

.ayira-login-logo {
    display: block;
    width: min(390px, 72%);
    height: auto;
    object-fit: contain;
}

.ayira-login-logo.is-compact {
    display: none;
}

.ayira-brand-rule {
    width: 110px;
    height: 3px;
    margin: 16px 0 44px 106px;
    background: #08c7b7;
}

.ayira-login-brand h2 {
    max-width: 620px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(42px, 4.1vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

.ayira-login-brand h2 strong {
    color: #10c9bb;
    font-weight: 700;
}

.ayira-login-brand > .ayira-brand-content > p {
    max-width: 610px;
    margin: 0 0 24px;
    color: #d6e3f5;
    font-size: clamp(16px, 1.15vw, 21px);
    line-height: 1.65;
}

.ayira-feature-list {
    display: grid;
    gap: 12px;
}

.ayira-feature-list > div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.ayira-feature-list img {
    width: 52px;
    height: 52px;
    padding: 10px;
    border: 1px solid #08c7b7;
    border-radius: 8px;
    object-fit: contain;
}

.ayira-feature-list b,
.ayira-feature-list small {
    display: block;
}

.ayira-feature-list b {
    margin-bottom: 3px;
    color: #fff;
    font-size: 15px;
}

.ayira-feature-list small {
    color: #c8d8ed;
    font-size: 13px;
    line-height: 1.35;
}

.ayira-login-brand footer > span {
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 16px;
    background: #08c7b7;
}

.ayira-login-brand footer p {
    margin: 0;
    color: #d6e3f5;
    font-size: 13px;
}

.ayira-login-main {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 24px;
    padding: clamp(36px, 6vh, 70px) clamp(34px, 5vw, 72px) clamp(30px, 5vh, 54px);
    overflow: auto;
    background-color: #f9fcfd;
    background-image: url("/assets/frappe/images/ayira_login/light-pattern.svg"), url("/assets/frappe/images/ayira_login/dot-pattern.svg");
    background-repeat: no-repeat;
    background-position: right top, 92% 8%;
    background-size: 55% auto, 180px auto;
}

.ayira-login-stage {
    display: grid;
    place-items: center;
    min-height: 0;
}

.ayira-login-stage > section {
    width: min(100%, 500px);
    margin: 0;
}

.ayira-login-card.page-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(28px, 3.2vw, 42px);
    border: 1px solid rgba(215, 225, 234, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 50px rgba(19, 47, 83, .12);
}

.ayira-login-card-heading {
    margin-bottom: 26px;
    text-align: center;
}

.ayira-login-card-heading h1 {
    margin: 0 0 8px;
    color: #0b2044;
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 700;
    letter-spacing: 0;
}

.ayira-login-card-heading p {
    margin: 0;
    color: #657692;
    font-size: 15px;
}

.ayira-login-card-heading > span {
    display: block;
    width: 74px;
    height: 2px;
    margin: 14px auto 0;
    background: #08c7b7;
}

.ayira-login-fields.page-card-body,
.ayira-login-card .page-card-actions {
    padding: 0;
}

.ayira-login-fields .form-group {
    margin-bottom: 18px;
}

.ayira-login-fields .form-label {
    display: block;
    margin-bottom: 8px;
    color: #0b2044;
    font-size: 13px;
    font-weight: 600;
}

.ayira-input-wrap {
    position: relative;
}

.ayira-input-wrap .field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #7f90a8;
}

.ayira-input-wrap .form-control {
    height: 48px;
    padding: 0 48px;
    border: 1px solid #cfd9e4;
    border-radius: 4px;
    background: #fff;
    color: #10284b;
    font-size: 14px;
    box-shadow: none;
}

.ayira-input-wrap .form-control:focus {
    border-color: #08b9ae;
    box-shadow: 0 0 0 3px rgba(8, 185, 174, .12);
}

.ayira-toggle-password {
	position: absolute;
	right: 14px;
	top: 0;
	bottom: 0;
	z-index: 2;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;

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

	width: auto;
	min-width: 44px;
	height: 100%;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: #52627a;
	transform: none;
}

.ayira-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 18px;
    font-size: 13px;
}

.ayira-login-options a,
.ayira-contact-line strong,
.ayira-login-card a {
    color: #00a99d;
}

.ayira-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #657692;
    cursor: pointer;
}

.ayira-remember input {
    width: 17px;
    height: 17px;
    accent-color: #08b9ae;
}

.ayira-sign-in.btn,
.ayira-login-card .btn-primary {
    height: 48px;
    border: 0;
    border-radius: 4px;
    background: #0873d1;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
}

.ayira-sign-in.btn:hover,
.ayira-login-card .btn-primary:hover {
    background: #075fab;
}

.ayira-sign-in img {
    width: 18px;
    height: 18px;
    margin-right: 9px;
    filter: brightness(0) invert(1);
}

.ayira-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 16px;
    color: #7b8ba1;
    font-size: 13px;
}

.ayira-login-divider::before,
.ayira-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8e0e8;
}

.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-login-buttons .btn-login-option {
    width: 72px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #d5dee7;
    border-radius: 6px;
    background: #fff;
    color: #0b2044;
    box-shadow: 0 5px 12px rgba(24, 46, 74, .08);
    font-size: 0;
}

.social-login-buttons .btn-login-option img,
.social-login-buttons .btn-login-option svg {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.ayira-contact-line {
    margin: 24px 0 0;
    color: #75859b;
    font-size: 13px;
    text-align: center;
}

.ayira-login-stats {
    width: 100%;
    min-height: 104px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 16px 20px;
    border: 1px solid rgba(215, 225, 234, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(19, 47, 83, .1);
}

.ayira-login-stats > div {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 14px;
    border-right: 1px solid #dce4ec;
}

.ayira-login-stats > div:last-child {
    border-right: 0;
}

.ayira-login-stats img {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 50%;
    background: #eaf3ff;
}

.ayira-login-stats b,
.ayira-login-stats small {
    display: block;
}

.ayira-login-stats b {
    color: #0b2044;
    font-size: 14px;
}

.ayira-login-stats small {
    margin-top: 2px;
    color: #718198;
    font-size: 10px;
    line-height: 1.2;
}

.ayira-login-noscript {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 50%;
    padding: 10px 16px;
    border-radius: 4px;
    background: #fff3cd;
    color: #664d03;
    transform: translateX(-50%);
}

@media (max-height: 820px) and (min-width: 981px) {
    .ayira-login-brand {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .ayira-brand-rule {
        margin-bottom: 24px;
    }

    .ayira-login-brand h2 {
        font-size: 44px;
    }

    .ayira-feature-list {
        gap: 7px;
    }

    .ayira-feature-list img {
        width: 44px;
        height: 44px;
    }

    .ayira-login-main {
        gap: 14px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .ayira-login-card.page-card {
        padding: 26px 34px;
    }

    .ayira-login-stats {
        min-height: 84px;
    }
}

@media (max-width: 980px) {
    body[data-path="login"] {
        overflow: auto;
    }

    .ayira-login-page {
        height: auto;
        min-height: 100vh;
        display: block;
        overflow: visible;
    }

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

    .ayira-login-main {
        min-height: 100vh;
        padding: 28px 18px;
        overflow: visible;
    }

    .ayira-login-logo.is-compact {
        display: block;
        width: min(300px, 82%);
        margin: 0 auto 24px;
    }

    .ayira-login-card.page-card {
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    .ayira-login-main {
        grid-template-rows: auto auto;
    }

    .ayira-login-stats {
        grid-template-columns: 1fr 1fr;
        gap: 14px 0;
    }

    .ayira-login-stats > div:nth-child(2) {
        border-right: 0;
    }

    .ayira-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
