/* Optical shop login — Line-inspired maroon / teal */
:root {
    --opt-maroon: #8b0000;
    --opt-maroon-deep: #5c0000;
    --opt-teal: #006666;
    --opt-teal-deep: #004040;
    --opt-cream: #f4f0ea;
    --opt-ink: #1a1a1a;
    --opt-muted: #6b6b6b;
}

* { box-sizing: border-box; }

html, body.opt-login {
    margin: 0;
    min-height: 100%;
    font-family: "Cairo", Tahoma, "Segoe UI", sans-serif;
    color: var(--opt-ink);
    background: #1a1212;
}

.opt-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(139, 0, 0, 0.55), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(0, 102, 102, 0.45), transparent 50%),
        linear-gradient(145deg, #1a1212 0%, #2a1818 40%, #0f1f1f 100%);
}
.opt-login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
}

.opt-lang {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 5;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.25);
    transition: background .2s;
}
.opt-lang:hover { background: rgba(255,255,255,0.12); color: #fff; }

.opt-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    align-items: center;
}

.opt-login-brand {
    padding: 24px 32px 24px 12px;
    color: #fff;
    animation: optFadeIn .6s ease both;
}
.opt-brand-mark {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    overflow: hidden;
}
.opt-brand-mark img {
    width: 78%;
    height: auto;
    display: block;
}
.opt-login-brand h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.opt-tagline {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    max-width: 34ch;
}
.opt-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.opt-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ffe082;
}
.opt-features i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,102,102,0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.opt-login-card {
    background: #fff;
    padding: 36px 32px 28px;
    border-top: 5px solid var(--opt-maroon);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    animation: optSlideUp .55s ease both;
}
.opt-card-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--opt-teal);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.opt-card-head h2 {
    margin: 0 0 22px;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--opt-maroon-deep);
}

.opt-alert {
    background: #fdecea;
    color: #8b0000;
    border: 1px solid #f5c2c0;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}

.opt-form label {
    display: block;
    margin-bottom: 14px;
}
.opt-form label > span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}
.opt-input {
    position: relative;
}
.opt-input i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--opt-teal);
    font-size: 14px;
}
.opt-input input {
    width: 100%;
    height: 46px;
    border: 1px solid #cfcfcf;
    padding: 0 38px 0 14px;
    font-family: inherit;
    font-size: 15px;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
}
.opt-input input:focus {
    outline: none;
    border-color: var(--opt-teal);
    box-shadow: 0 0 0 3px rgba(0,102,102,0.15);
    background: #fff;
}

.opt-remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 4px 0 18px !important;
    cursor: pointer;
}
.opt-remember input { width: auto; margin: 0; }
.opt-remember span { font-size: 13px; font-weight: 600; color: var(--opt-muted); }

.opt-submit {
    width: 100%;
    height: 48px;
    border: 0;
    background: linear-gradient(180deg, #a30000 0%, var(--opt-maroon) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter .15s, transform .1s;
}
.opt-submit:hover { filter: brightness(1.08); }
.opt-submit:active { transform: translateY(1px); }

.opt-footer-note {
    margin: 22px 0 0;
    text-align: center;
    font-size: 11px;
    color: #999;
}

@keyframes optFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes optSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
    .opt-login-shell {
        grid-template-columns: 1fr;
        padding: 72px 16px 32px;
        gap: 20px;
    }
    .opt-login-brand {
        text-align: center;
        padding: 0;
    }
    .opt-brand-mark { margin-left: auto; margin-right: auto; }
    .opt-tagline { max-width: none; margin-left: auto; margin-right: auto; }
    .opt-features { align-items: center; }
    .opt-login-card { padding: 28px 20px 22px; }
}
