﻿* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Quicksand', sans-serif;
    background-image: linear-gradient(135deg, rgba(10, 80, 45, 0.45), rgba(6, 40, 28, 0.6)), url('bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eef8f1;
    padding: 24px;
}
.form {
    width: min(420px, 96%);
    margin: 24px auto;
    animation: fadeInUp 0.9s ease both;
}
.box {
    padding: 34px 30px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 40, 30, 0.9), rgba(8, 30, 24, 0.88));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 64px rgba(0,0,0,0.24);
    backdrop-filter: blur(14px);
}
.box h3 {
    margin: 0 0 10px;
    font-size: 1.95rem;
    letter-spacing: 0.02em;
    color: #f8f9ff;
    text-align: center;
}
.box .subhead {
    text-align: center;
    color: rgba(241,243,248,0.82);
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.brand-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #76c893, #2f8a46);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    overflow: hidden;
    padding: 6px;
}
.brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.password-wrap {
    position: relative;
}
.password-wrap .input {
    margin-bottom: 16px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #dff7e6;
    cursor: pointer;
    font-size: 0.95rem;
}
.password-toggle:hover {
    color: #f5c145;
}
.input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #f4f7ff;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.input:focus {
    outline: none;
    border-color: #76c893;
    transform: translateY(-1px);
}

.input:focus-visible {
    box-shadow: 0 0 0 4px rgba(118,200,147,0.14);
    border-color: #76c893;
}

.button:focus-visible {
    outline: none;
    box-shadow: 0 8px 30px rgba(118,200,147,0.18);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .form, .box, .button, .input { transition: none !important; animation: none !important; }
}

.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.button {
    width: 100%;
    border: none;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #68b267 0%, #8fd89e 100%);
    color: #072116;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.button:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 22px 40px rgba(0,0,0,0.18);
}
.form-link {
    display: inline-block;
    margin-top: 8px;
    color: #dff7e6;
    transition: color 0.2s ease;
}
.form-link:hover {
    color: #f5c145;
}
a {
    color: #d6e4ff;
    text-decoration: none;
}
a:hover {
    color: #f5c145;
}
.reg {
    display: none;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
    body { padding: 16px; background-attachment: scroll; align-items: flex-start; }
    .form { width: 100%; margin: 16px auto; }
    .box { padding: 24px 18px; }
    .box h3 { font-size: 1.6rem; }
    .password-toggle { padding: 8px 4px; }
}
