/* ============================================================
   KICK FORGE LOGIN MODAL
   Extracted from homepage for use on /try-studio/ page.
   ============================================================ */

.kf-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
    box-sizing: border-box;
}

.kf-login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kf-login-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 48px;
    background: #0a0a0c;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 229, 255, 0.12);
    position: relative;
    box-sizing: border-box;
    transform: scale(0.96) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.kf-login-modal-overlay.active .kf-login-wrapper {
    transform: scale(1) translateY(0);
}

/* Top gradient line */
.kf-login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Glow corners */
.kf-login-wrapper > .kf-corner-tl,
.kf-login-wrapper > .kf-corner-br {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
}
.kf-login-wrapper > .kf-corner-tl {
    top: 12px;
    left: 12px;
    border-top: 2px solid rgba(0, 229, 255, 0.5);
    border-left: 2px solid rgba(0, 229, 255, 0.5);
}
.kf-login-wrapper > .kf-corner-br {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.5);
    border-right: 2px solid rgba(0, 229, 255, 0.5);
}

/* Close button */
button.kf-close-login,
button.kf-close-login:hover,
button.kf-close-login:focus,
button.kf-close-login:active {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: #8d90a2 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    z-index: 10 !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: color 0.25s ease, transform 0.25s ease !important;
    font-family: inherit !important;
}
button.kf-close-login:hover {
    color: #00e5ff !important;
    transform: scale(1.1);
}

.kf-login-title {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.kf-login-subtitle {
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: #c3c5d9;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 32px 0;
    font-weight: 400;
}

.kf-login-group {
    margin-bottom: 20px;
    text-align: left;
}

.kf-login-group label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    color: #00e5ff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.kf-login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 16px !important;
    border-radius: 6px !important;
    color: #fff !important;
    caret-color: #fff !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

.kf-login-input::placeholder {
    color: #6b7280;
}

.kf-login-input:focus {
    border-color: rgba(0, 229, 255, 0.6) !important;
    background: rgba(0, 229, 255, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1) !important;
}

/* Autofill kleur fix */
.kf-login-input:-webkit-autofill,
.kf-login-input:-webkit-autofill:hover,
.kf-login-input:-webkit-autofill:focus,
.kf-login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a0c inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.kf-password-wrapper {
    position: relative;
    width: 100%;
}

.kf-password-wrapper .kf-login-input {
    padding-right: 48px !important;
}

button.kf-toggle-password,
button.kf-toggle-password:hover,
button.kf-toggle-password:focus,
button.kf-toggle-password:active {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    padding: 6px !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    transition: color 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    box-shadow: none !important;
}

button.kf-toggle-password:hover {
    color: #00e5ff !important;
}

.kf-toggle-password svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kf-remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.kf-remember-group label {
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    color: #c3c5d9;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
    cursor: pointer;
}

.kf-remember-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #00e5ff;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Submit button */
.kfa-landing button.kf-login-btn,
button.kf-login-btn,
button.kf-login-btn:link,
button.kf-login-btn:visited,
button.kf-login-btn:hover,
button.kf-login-btn:focus,
button.kf-login-btn:active {
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    color: #000 !important;
    border: 0 !important;
    padding: 16px 24px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    width: 100%;
    transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
    margin-top: 8px;
    text-shadow: none !important;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button.kf-login-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.7) !important;
    transform: translateY(-1px);
}

button.kf-login-btn.loading,
button.kf-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* Error melding */
.kf-login-error {
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.35);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: none;
}

.kf-login-error.visible {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: kf-shake 0.4s ease;
}

.kf-login-error-icon {
    color: #ff007f;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.kf-login-error-text {
    font-family: 'Inter', sans-serif;
    color: #ff007f;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

@keyframes kf-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.kf-login-footer {
    margin-top: 28px;
    text-align: center;
}

.kf-subscribe-link {
    display: block;
    font-family: 'Inter', sans-serif;
    color: #c3c5d9;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 16px;
    font-weight: 400;
    transition: color 0.25s ease;
}

.kf-subscribe-link strong {
    font-family: 'Space Grotesk', sans-serif;
    color: #00e5ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    margin-left: 6px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.kf-subscribe-link:hover strong {
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.kf-footer-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 229, 255, 0.15) 50%,
        transparent 100%
    );
    width: 60%;
    margin: 0 auto 16px auto;
}

.kf-forgot-password {
    font-family: 'Inter', sans-serif;
    color: #8d90a2;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.25s ease;
    font-weight: 400;
}

.kf-forgot-password:hover {
    color: #00e5ff;
}
