:root {
    --wa-green: #16a34a;
    --wa-light-green: #35d375;
    --wa-dark: #0d6f34;
    --page-background: #f4f7f6;
    --login-text: #17211b;
    --login-muted: #6b756e;
    --login-border: #dce5df;
}

body {
    min-height: 100vh;
    background-color: var(--page-background);
}

.login-page {
    margin: 0;
    color: var(--login-text);
    background: #f5f8f6;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
}

.login-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(48px, 7vw, 104px);
    overflow: hidden;
    color: white;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(255, 255, 255, 0.16),
            transparent 30%
        ),
        linear-gradient(145deg, #087b36 0%, #16a34a 55%, #36bd70 100%);
}

.login-brand-panel::after {
    position: absolute;
    right: -150px;
    bottom: -190px;
    width: 440px;
    height: 440px;
    content: "";
    border: 70px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
}

.login-brand-logo {
    display: block;
    width: 230px;
    max-width: 72%;
    height: 76px;
    margin: 0 0 54px;
    padding: 9px 14px;
    object-fit: contain;
    border-radius: 15px;
    background: white;
}

.login-eyebrow {
    margin: 0 0 10px;
    color: var(--wa-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-brand-panel .login-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.login-brand-panel h1 {
    max-width: 540px;
    margin: 0;
    font-size: clamp(38px, 4.4vw, 64px);
    font-weight: 760;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.login-brand-panel h1 + p {
    max-width: 540px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.7;
}

.login-trust-note {
    display: flex;
    margin-top: 38px;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 650;
}

.login-trust-note span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.login-company-note {
    margin: 28px 0 0 37px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.login-company-note strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 750;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px clamp(24px, 6vw, 96px);
}

.login-form-wrap {
    width: min(100%, 510px);
}

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

.login-card {
    border: 1px solid rgba(220, 229, 223, 0.92) !important;
    border-radius: 22px;
    background: white;
    box-shadow: 0 24px 70px rgba(25, 61, 39, 0.11);
}

.login-card .card-body {
    padding: clamp(30px, 5vw, 48px);
}

.login-card-header {
    margin-bottom: 30px;
}

.login-card-header h2 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.login-card-header > p:last-child {
    margin: 9px 0 0;
    color: var(--login-muted);
    font-size: 15px;
}

.login-card .form-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.login-card .form-control {
    min-height: 52px;
    padding: 12px 14px;
    color: var(--login-text);
    border: 1px solid var(--login-border);
    border-radius: 10px;
    background: #fbfcfb;
}

.login-card .form-control:focus {
    border-color: var(--wa-green);
    background: white;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.login-password-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.forgot-password-button {
    padding: 0;
    color: var(--wa-dark);
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 750;
}

.forgot-password-button:hover,
.forgot-password-button:focus-visible {
    color: var(--wa-green);
    text-decoration: underline;
}

.forgot-password-help {
    margin: 0 0 18px;
    padding: 13px 14px;
    color: #31543e;
    border: 1px solid #bde3ca;
    border-radius: 10px;
    background: #effaf3;
    font-size: 13px;
    line-height: 1.55;
}

.forgot-password-help strong {
    display: block;
    margin-bottom: 2px;
    color: #126b32;
}

.login-submit {
    min-height: 50px;
    margin-top: 6px;
    border-color: var(--wa-green);
    border-radius: 10px;
    background: var(--wa-green);
    font-weight: 750;
}

.login-submit:hover,
.login-submit:focus {
    border-color: var(--wa-dark);
    background: var(--wa-dark);
}

.login-footer {
    margin: 18px 0 0;
    color: #8b958f;
    font-size: 12px;
    text-align: center;
}

.login-footer strong {
    color: #66726a;
    font-weight: 750;
}

.form-control {
    min-height: 46px;
}

.card {
    border-radius: 16px;
}
.qr-image {
    width: 280px;
    max-width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

.empty-state {
    padding: 50px 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 14px;
}

.empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background-color: var(--wa-green);
    font-weight: 700;
}

.session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e7e9eb;
    border-radius: 14px;
    background-color: white;
}

@media (max-width: 767px) {
    .login-shell {
        display: block;
    }

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

    .login-form-panel {
        min-height: 100vh;
        padding: 26px 18px;
    }

    .login-mobile-brand {
        display: block;
        margin: 0 auto 22px;
        text-align: center;
    }

    .login-mobile-brand img {
        width: 190px;
        height: 66px;
        padding: 8px 12px;
        object-fit: contain;
        border-radius: 13px;
        background: white;
    }

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

    .login-card-header h2 {
        font-size: 27px;
    }

    .session-item {
        align-items: flex-start;
        flex-direction: column;
    }
}


.schedule-item {
    padding: 18px;
    border: 1px solid #e7e9eb;
    border-radius: 14px;
    background-color: white;
}

.schedule-message {
    padding: 12px;
    color: #495057;
    background-color: #f8f9fa;
    border-radius: 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#groupId[size] {
    min-height: 180px;
    padding: 6px;
}

#groupId[size] option {
    padding: 9px 10px;
    border-radius: 6px;
}

#groupId[size] option:checked {
    color: white;
    background-color: var(--wa-green);
}

.log-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid #e7e9eb;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.log-summary strong {
    font-size: 24px;
}

.log-message-cell {
    min-width: 240px;
    max-width: 420px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.table > :not(caption) > * > * {
    padding: 14px 12px;
}

.delivery-time-add {
    display: flex;
    gap: 8px;
}

.delivery-time-add .form-control {
    min-width: 0;
}

.delivery-times-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 34px;
    margin-top: 9px;
}

.delivery-time-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px 6px 11px;
    border: 1px solid #b7e4c7;
    border-radius: 999px;
    background: #edf9f1;
    color: #087b36;
    font-size: 13px;
    font-weight: 700;
}

.delivery-time-chip button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d7f2e1;
    color: #087b36;
    line-height: 1;
}

.field-error-message {
    margin-top: 7px;
    color: #c62828;
    font-size: 13px;
    line-height: 1.4;
}

.field-has-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.08);
}

.delivery-times-list.field-has-error,
.audience-tray.field-has-error,
.weekday-row.field-has-error,
.monthday-grid.field-has-error,
.yearly-date-panels.field-has-error {
    padding: 8px;
    border: 1px solid #dc3545;
    border-radius: 10px;
}

.tag-selector {
    position: relative;
}

.tag-selected-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    margin-bottom: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px 6px 11px;
    border: 1px solid #b7e4c7;
    border-radius: 999px;
    background: #edf9f1;
    color: #087b36;
    font-size: 13px;
    font-weight: 700;
}

.tag-chip button {
    width: 19px;
    height: 19px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d7f2e1;
    color: #087b36;
    line-height: 1;
}

.tag-selector-controls {
    display: flex;
    gap: 8px;
}

.tag-options {
    position: absolute;
    z-index: 20;
    right: 0;
    left: 0;
    max-height: 220px;
    margin-top: 5px;
    overflow-y: auto;
    border: 1px solid #dce3df;
    border-radius: 10px;
    background: var(--surface, #fff);
    box-shadow: 0 12px 30px rgba(15, 35, 25, 0.12);
}

.tag-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    cursor: pointer;
}

.tag-option:hover {
    background: #f1f8f4;
}

.tag-option-empty {
    padding: 12px;
    color: #7b8780;
    font-size: 13px;
}

.tag-filter {
    position: relative;
    min-width: 190px;
}

.tag-filter-toggle {
    display: flex;
    align-items: center;
    min-height: 42px;
    text-align: left;
    background-color: var(--surface, #fff);
}

.tag-filter-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    padding: 12px;
    border: 1px solid #dce3df;
    border-radius: 12px;
    background: var(--surface, #fff);
    box-shadow: 0 12px 30px rgba(15, 35, 25, 0.12);
}

.tag-filter-options {
    max-height: 220px;
    padding: 6px 0;
    overflow-y: auto;
}

.automation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #e7e9eb;
    border-radius: 14px;
    background-color: white;
}

@media (max-width: 767px) {
    .user-item {
        align-items: flex-start;
        flex-direction: column;
    }
}
.dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    padding: 20px;
    border: 1px solid #e7e9eb;
    border-radius: 14px;
    background-color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

.stat-number {
    font-size: 34px;
    line-height: 1.2;
}

.recent-schedule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e7e9eb;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .recent-schedule {
        align-items: flex-start;
        flex-direction: column;
    }
}
