/* =========================================================
   YYL CRM modern login page
     - This is a standalone page that does not use the app shell 
     foundation styles, but it can be used as a reference for future 
     standalone pages like the password reset page or marketing site.
   ========================================================= */
.yy-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 18px;
    box-sizing: border-box;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--yy-slate-950);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(15, 159, 154, 0.14), transparent 32%),
        linear-gradient(135deg, #eef4ff 0%, #f8fafc 44%, #ffffff 100%);
}

.yy-login-shell {
    width: min(1120px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--yy-shadow-lg);
}

.yy-login-brand-panel {
    position: relative;
    isolation: isolate;
    padding: 44px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(7, 29, 54, 0.96), rgba(10, 41, 74, 0.94)),
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.46), transparent 34%),
        radial-gradient(circle at 84% 78%, rgba(15, 159, 154, 0.30), transparent 34%);
}

.yy-login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.72;
    background:
        linear-gradient(115deg, transparent 0 20%, rgba(59, 130, 246, 0.16) 20% 20.6%, transparent 20.6% 42%, rgba(20, 184, 166, 0.13) 42% 42.5%, transparent 42.5% 100%),
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 24% 28%, rgba(96, 165, 250, 0.24), transparent 18%),
        radial-gradient(circle at 72% 72%, rgba(45, 212, 191, 0.17), transparent 21%);
    background-size: auto, 42px 42px, 42px 42px, auto, auto;
}

.yy-login-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.38;
    background-image:
        linear-gradient(135deg, transparent 0 47%, rgba(125, 211, 252, 0.30) 47% 48%, transparent 48% 100%),
        linear-gradient(45deg, transparent 0 72%, rgba(45, 212, 191, 0.22) 72% 73%, transparent 73% 100%);
    background-size: 180px 180px, 220px 220px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.32));
}

.yy-login-logo-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.yy-login-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin-top: 96px;
}

.yy-eyebrow {
    margin: 0 0 14px;
    color: #8be4df;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.yy-login-hero-copy h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.06;
    letter-spacing: -0.045em;
    color: #fff;
}

.yy-login-hero-copy p:last-child {
    max-width: 470px;
    margin: 22px 0 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: 16px;
    line-height: 1.7;
}

.yy-login-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 76px;
}

.yy-login-feature-grid div {
    min-height: 92px;
    padding: 16px;
    border-radius: var(--yy-radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.yy-login-feature-grid strong,
.yy-login-feature-grid span {
    display: block;
}

.yy-login-feature-grid strong {
    font-size: 14px;
    color: #fff;
}

.yy-login-feature-grid span {
    margin-top: 8px;
    color: rgba(226, 232, 240, 0.76);
    font-size: 12px;
    line-height: 1.4;
}

.yy-login-card-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background: rgba(248, 250, 252, 0.82);
}

.yy-login-card {
    width: min(420px, 100%);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border-radius: var(--yy-radius-xl);
    background: #fff;
    border: 1px solid var(--yy-slate-200);
    box-shadow: var(--yy-shadow-md);
}

.yy-login-card-header {
    text-align: center;
    margin-bottom: 26px;
}

.yy-login-lock {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--yy-blue-700), #5b5fe8);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.yy-login-card h2 {
    margin: 16px 0 6px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.yy-login-card p {
    margin: 0;
    color: var(--yy-slate-500);
    font-size: 14px;
}

.yy-login-message-area {
    margin-bottom: 18px;
}

.yy-login-form {
    display: grid;
    gap: 10px;
}
