/* Login page */

body.cl-login-page { background: linear-gradient(180deg, var(--green-light) 0%, #fff 100%); display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 100vh; }

.cl-login-wrap { width: 100%; max-width: 440px; }
.cl-login-card { background: #fff; border-radius: 16px; padding: 36px 36px 30px; box-shadow: 0 20px 60px rgba(15,30,27,.08), 0 4px 14px rgba(15,30,27,.04); border: 1px solid var(--border); border-top: 3px solid var(--green); }

.cl-login-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.cl-login-logo img { height: 40px; display: block; }
.cl-login-logo-text { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.cl-login-logo-text span { color: var(--green); }

.cl-login-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--text); margin-bottom: 15px; text-align: center; }
.cl-login-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; text-align: center; }

.cl-login-form { display: flex; flex-direction: column; gap: 14px; }

.cl-login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; font-size: 13.5px; flex-wrap: wrap; }
.cl-login-options label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text-muted); font-weight: 500; }
.cl-login-options input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; margin: 0; border: 1.5px solid var(--border); border-radius: 5px; background: #fff; cursor: pointer; position: relative; flex-shrink: 0; transition: background .15s, border-color .15s; }
.cl-login-options input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.cl-login-options input[type="checkbox"]:checked::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); background-size: 70% 70%; background-position: center; background-repeat: no-repeat; }
.cl-login-options a { color: var(--green); font-weight: 600; text-decoration: none; }
.cl-login-options a:hover { text-decoration: underline; }

.cl-login-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; font-family: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--green); border: none; border-radius: 10px; cursor: pointer; transition: background .15s, transform .15s; margin-top: 6px; }
.cl-login-submit:hover { background: var(--green-dark); }
.cl-login-submit:active { transform: scale(.98); }
.cl-login-submit:disabled { opacity: .75; cursor: default; }
.cl-login-submit svg { width: 16px; height: 16px; }

.cl-login-foot { text-align: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); }
.cl-login-foot a { color: var(--green); font-weight: 600; text-decoration: none; }
.cl-login-foot a:hover { text-decoration: underline; }

/* Inline alerts */
.cl-login-error { display: none; padding: 11px 14px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.45; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; }
.cl-login-success { padding: 11px 14px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.45; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; }

/* Loading spinner inside the submit button */
.cl-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: cl-spin .6s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
