/* =====================================================================
   KYIROV — AUTH PAGES (register.php / login.php)
   Builds on toggle.css + style.css variables.
   ===================================================================== */

body.kv-auth-body { background: #f6f8f7; }

.kv-auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 68px);
}

/* ---------- Left: animated gradient visual panel ---------- */
.kv-auth-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #0e7c66, #14997d, #f2b705, #0e7c66);
    background-size: 300% 300%;
    animation: kv-gradient-shift 14s ease infinite;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

@keyframes kv-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.kv-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.25;
    background: #fff;
    animation: kv-float 9s ease-in-out infinite;
}
.kv-blob-1 { width: 220px; height: 220px; top: -60px; left: -60px; animation-delay: 0s; }
.kv-blob-2 { width: 160px; height: 160px; bottom: 10%; right: -40px; animation-delay: 2s; background: #ffe27a; opacity: 0.3; }
.kv-blob-3 { width: 90px;  height: 90px;  bottom: 15%; left: 10%; animation-delay: 4s; }
.kv-blob-4 { width: 130px; height: 130px; top: 20%; right: 15%; animation-delay: 1s; background: #ffffff; opacity: 0.18; }

@keyframes kv-float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    33%      { transform: translateY(-24px) translateX(12px) scale(1.05); }
    66%      { transform: translateY(14px) translateX(-10px) scale(0.96); }
}

.kv-auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    animation: kv-fade-up 0.8s ease both;
}
.kv-auth-visual-content h1 { font-size: 30px; margin: 0 0 14px; line-height: 1.3; }
.kv-auth-visual-content p { font-size: 15px; opacity: 0.95; margin-bottom: 28px; }

.kv-auth-badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.kv-auth-pill {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* "Why join" accordion sitting on the gradient panel */
.kv-auth-visual .kv-toggle-btn {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}
.kv-auth-visual .kv-toggle-panel {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-top: none;
    backdrop-filter: blur(6px);
}
.kv-auth-visual .kv-toggle-panel ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.9; }

/* ---------- Right: form panel ---------- */
.kv-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.kv-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(14,124,102,.14);
    padding: 40px 36px;
    animation: kv-fade-up 0.7s ease both;
    animation-delay: 0.1s;
}

@keyframes kv-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kv-auth-card h1 {
    font-size: 24px;
    margin: 0 0 6px;
    text-align: center;
}
.kv-auth-subtitle {
    text-align: center;
    color: var(--kv-text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

/* Oval/pill inputs */
.kv-oval-group { margin-bottom: 18px; animation: kv-fade-up 0.6s ease both; }
.kv-oval-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--kv-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 7px;
    padding-left: 6px;
}
.kv-oval-input-wrap { position: relative; }
.kv-oval-input-wrap .kv-oval-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.55;
}
.kv-oval-group input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    border: 1.5px solid var(--kv-border);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.kv-oval-group input:focus {
    outline: none;
    border-color: var(--kv-primary);
    box-shadow: 0 0 0 4px rgba(14,124,102,.12);
    transform: translateY(-1px);
}

/* Password field variant of the oval input, with show/hide */
.kv-oval-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.kv-oval-password-wrap .kv-oval-icon {
    position: absolute;
    left: 18px;
    font-size: 15px;
    opacity: 0.55;
    z-index: 1;
}
.kv-oval-password-wrap input {
    width: 100%;
    padding: 14px 46px 14px 44px;
    border: 1.5px solid var(--kv-border);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.kv-oval-password-wrap input:focus {
    outline: none;
    border-color: var(--kv-primary);
    box-shadow: 0 0 0 4px rgba(14,124,102,.12);
}
.kv-oval-password-wrap .kv-password-toggle {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f3;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background .2s ease, transform .2s ease;
}
.kv-oval-password-wrap .kv-password-toggle:hover { background: #e2ebe7; }
.kv-oval-password-wrap .kv-password-toggle.kv-active { background: var(--kv-gradient); transform: scale(1.05); }

/* Password strength meter */
.kv-strength-meter {
    height: 5px;
    border-radius: 999px;
    background: #eef2f0;
    margin-top: 9px;
    overflow: hidden;
}
.kv-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: #d64545;
    transition: width .35s ease, background .35s ease;
}
.kv-strength-label {
    font-size: 11px;
    color: var(--kv-text-muted);
    margin-top: 5px;
    padding-left: 6px;
    display: block;
}

/* Animated gradient submit button */
.kv-oval-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(90deg, #0e7c66, #14997d, #f2b705, #0e7c66);
    background-size: 300% 100%;
    animation: kv-gradient-shift 6s ease infinite;
    box-shadow: 0 8px 22px rgba(14,124,102,.28);
    transition: transform .15s ease, box-shadow .2s ease;
    margin-top: 6px;
}
.kv-oval-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,124,102,.36); }
.kv-oval-submit:active { transform: translateY(0) scale(0.98); }

.kv-auth-footnote {
    text-align: center;
    font-size: 13px;
    color: var(--kv-text-muted);
    margin-top: 22px;
}
.kv-auth-footnote a { font-weight: 700; }

.kv-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--kv-text-muted);
    font-size: 12px;
}
.kv-auth-divider::before, .kv-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--kv-border);
}

@media (max-width: 860px) {
    .kv-auth-wrap { grid-template-columns: 1fr; }
    .kv-auth-visual { padding: 40px 30px; min-height: 280px; }
    .kv-auth-visual-content h1 { font-size: 24px; }
}
