/*
 * Mayam login — cream / gold card with icon fields.
 */
body.mayam-theme.mayam-login {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse 70% 55% at 12% 8%, rgba(229, 212, 168, 0.45), transparent 55%),
        radial-gradient(ellipse 60% 45% at 92% 88%, rgba(177, 151, 96, 0.22), transparent 50%),
        radial-gradient(circle at 50% 120%, rgba(200, 184, 136, 0.18), transparent 40%),
        linear-gradient(165deg, #FBF8F2 0%, #F5F0E6 45%, #EDE6D8 100%) !important;
    color: var(--mayam-ink, #3F3A32);
}

body.mayam-theme.mayam-login .mayam-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

body.mayam-theme.mayam-login .mayam-login-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1px solid rgba(200, 184, 136, 0.45);
    border-radius: 1.5rem;
    box-shadow:
        0 28px 64px rgba(62, 52, 40, 0.09),
        0 6px 20px rgba(177, 151, 96, 0.14);
    padding: 2.35rem 2rem 1.85rem;
    text-align: center;
    overflow: hidden;
}

body.mayam-theme.mayam-login .mayam-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E5D4A8, #B19760, #8A7340, #B19760, #E5D4A8);
}

body.mayam-theme.mayam-login .elite-care-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0.2rem auto 1.15rem;
}

body.mayam-theme.mayam-login .elite-care-brand img {
    width: 48px;
    height: auto;
    display: block;
}

body.mayam-theme.mayam-login .elite-care-brand span {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #102a2b;
    line-height: 1;
}

body.mayam-theme.mayam-login .mayam-login-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--mayam-gold-dark, #8A7340);
    margin-bottom: 1.35rem;
    font-weight: 700;
}

body.mayam-theme.mayam-login .mayam-login-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mayam-ink, #3F3A32);
    margin-bottom: 0.35rem;
}

body.mayam-theme.mayam-login .mayam-login-subtitle {
    font-size: 0.88rem;
    color: #9A9288;
    margin-bottom: 1.65rem;
    line-height: 1.5;
}

/* ---- Icon inputs ---- */
body.mayam-theme.mayam-login .mayam-input {
    position: relative;
    margin: 0 0 0.95rem;
}

body.mayam-theme.mayam-login .mayam-input-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    transform: translateY(-50%);
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #B19760;
    pointer-events: none;
    z-index: 2;
}

body.mayam-theme.mayam-login .mayam-input-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

body.mayam-theme.mayam-login .mayam-input-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 0.65rem;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    background: transparent;
    color: #A89F94;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

body.mayam-theme.mayam-login .mayam-input-toggle:hover {
    color: #8A7340;
    background: rgba(177, 151, 96, 0.1);
}

body.mayam-theme.mayam-login .mayam-input-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}

body.mayam-theme.mayam-login .mayam-input-toggle .icon-eye-off {
    display: none;
}

body.mayam-theme.mayam-login .mayam-input.is-visible .mayam-input-toggle .icon-eye {
    display: none;
}

body.mayam-theme.mayam-login .mayam-input.is-visible .mayam-input-toggle .icon-eye-off {
    display: block;
}

body.mayam-theme.mayam-login .mayam-login-card .mayam-input .form-control {
    background: #FBF8F2 !important;
    border: 1px solid #E6DFD2 !important;
    color: #181C32 !important;
    -webkit-text-fill-color: #181C32 !important;
    caret-color: #181C32;
    border-radius: 0.9rem !important;
    padding-block: 0.95rem !important;
    padding-inline-start: 2.85rem !important;
    padding-inline-end: 1.15rem !important;
    height: auto !important;
    margin: 0 !important;
    text-align: start;
    font-size: 0.95rem !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.mayam-theme.mayam-login .mayam-login-card .mayam-input.has-toggle .form-control {
    padding-inline-end: 2.85rem !important;
}

body.mayam-theme.mayam-login .mayam-login-card .mayam-input .form-control::placeholder {
    color: #9A9288 !important;
    -webkit-text-fill-color: #9A9288 !important;
    opacity: 1;
}

body.mayam-theme.mayam-login .mayam-login-card .mayam-input .form-control:focus {
    border-color: #B19760 !important;
    box-shadow: 0 0 0 0.2rem rgba(177, 151, 96, 0.18) !important;
    background: #fff !important;
    color: #181C32 !important;
    -webkit-text-fill-color: #181C32 !important;
}

body.mayam-theme.mayam-login .mayam-input:focus-within .mayam-input-icon {
    color: #8A7340;
}

body.mayam-theme.mayam-login .mayam-login-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.15rem 0 1.35rem;
    color: #7A746C;
    font-size: 0.88rem;
}

body.mayam-theme.mayam-login .mayam-login-meta a {
    color: #8A7340 !important;
    font-weight: 600;
    text-decoration: none;
}

body.mayam-theme.mayam-login .mayam-login-meta a:hover {
    color: #6E5C34 !important;
    text-decoration: underline;
}

body.mayam-theme.mayam-login .mayam-login-meta .checkbox {
    color: #7A746C !important;
}

body.mayam-theme.mayam-login .mayam-login-meta .checkbox > span {
    border-color: #C8B888 !important;
    border-radius: 0.3rem !important;
}

body.mayam-theme.mayam-login .mayam-login-meta .checkbox > input:checked ~ span {
    background-color: #B19760 !important;
    border-color: #B19760 !important;
}

body.mayam-theme.mayam-login .mayam-login-submit {
    width: 100%;
    border: 0 !important;
    border-radius: 0.9rem !important;
    background: linear-gradient(135deg, #C8B888 0%, #B19760 48%, #8A7340 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    padding: 0.95rem 1.25rem !important;
    box-shadow: 0 12px 28px rgba(177, 151, 96, 0.38) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

body.mayam-theme.mayam-login .mayam-login-submit svg {
    width: 1.05rem;
    height: 1.05rem;
    opacity: 0.92;
}

body.mayam-theme.mayam-login[dir="rtl"] .mayam-login-submit svg {
    transform: scaleX(-1);
}

body.mayam-theme.mayam-login .mayam-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(138, 115, 64, 0.42) !important;
    color: #fff !important;
}

body.mayam-theme.mayam-login .mayam-login-langs {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid #EDE6D8;
    display: flex;
    justify-content: center;
    gap: 0.65rem;
}

body.mayam-theme.mayam-login .mayam-login-langs a {
    color: #9A9288 !important;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
}

body.mayam-theme.mayam-login .mayam-login-langs a:hover {
    color: #8A7340 !important;
    background: rgba(177, 151, 96, 0.08);
}

body.mayam-theme.mayam-login .mayam-login-langs a.is-active {
    color: #8A7340 !important;
    background: rgba(177, 151, 96, 0.14);
}

body.mayam-theme.mayam-login .mayam-login-powered {
    display: inline-block;
    margin-top: 0.85rem;
    color: #9A9288 !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
}

body.mayam-theme.mayam-login .mayam-login-powered span {
    color: #8A7340;
    font-weight: 700;
}

body.mayam-theme.mayam-login .mayam-login-powered:hover {
    color: #7A746C !important;
    text-decoration: none;
}

body.mayam-theme.mayam-login .mayam-login-powered:hover span {
    text-decoration: underline;
}

body.mayam-theme.mayam-login .alert {
    border-radius: 0.85rem;
    text-align: start;
    margin-bottom: 1rem;
}

body.mayam-theme.mayam-login .mayam-login-forgot-panel {
    display: none;
}

body.mayam-theme.mayam-login.is-forgot .mayam-login-signin-panel {
    display: none;
}

body.mayam-theme.mayam-login.is-forgot .mayam-login-forgot-panel {
    display: block;
}

body.mayam-theme.mayam-login .btn-outline-mayam {
    border: 1px solid #C8B888 !important;
    color: #8A7340 !important;
    background: transparent !important;
    border-radius: 0.9rem !important;
    font-weight: 600;
}

body.mayam-theme.mayam-login .btn-outline-mayam:hover {
    background: rgba(177, 151, 96, 0.1) !important;
}

/* Co-branding: Elite Care | Mayam side by side on the login card */
body.mayam-theme.mayam-login .elite-care-brand .brand-divider { font-size: 2rem; color: #B19760; font-weight: 300; }
body.mayam-theme.mayam-login .elite-care-brand img.mayam-brand-logo { width: auto; height: 64px; }
