/* katomu-auth-widget.css */

.k-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 6, 20, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.k-auth-overlay.k-auth-hidden {
    opacity: 0;
    pointer-events: none;
}

.k-auth-modal {
    background: #150f24;
    border: 1px solid #2d224d;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
    color: #e2e0e6;
}

.k-auth-overlay.k-auth-hidden .k-auth-modal {
    transform: translateY(20px);
}

.k-auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #8f8aa3;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.k-auth-close:hover {
    color: #e2e0e6;
    transform: scale(1.1);
}

.k-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.k-auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.k-auth-error.k-auth-hidden {
    display: none;
}

.k-auth-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.k-auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #a5a1b8;
}

.k-auth-input,
.k-auth-select {
    background: #0d0918;
    border: 1px solid #2d224d;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.k-auth-input:focus,
.k-auth-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.k-auth-input::placeholder {
    color: #55506a;
}

.k-auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.k-auth-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #8b5cf6;
    cursor: pointer;
}

.k-auth-checkbox-label {
    font-size: 13px;
    line-height: 1.4;
    color: #a5a1b8;
    user-select: none;
    cursor: pointer;
}

.k-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 16px;
}

.k-auth-link {
    color: #8b5cf6;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.k-auth-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.k-auth-buttons {
    display: flex;
    gap: 10px;
}

.k-auth-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.k-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.k-auth-btn-primary {
    background: #8b5cf6;
    color: #ffffff;
}

.k-auth-btn-primary:hover:not(:disabled) {
    background: #7c3aed;
}

.k-auth-btn-secondary {
    background: #231b3a;
    color: #e2e0e6;
    border: 1px solid #3c2f6b;
}

.k-auth-btn-secondary:hover:not(:disabled) {
    background: #2e244d;
}

.k-auth-scrollable {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for reg form */
.k-auth-scrollable::-webkit-scrollbar {
    width: 6px;
}
.k-auth-scrollable::-webkit-scrollbar-track {
    background: #150f24;
}
.k-auth-scrollable::-webkit-scrollbar-thumb {
    background: #2d224d;
    border-radius: 3px;
}
.k-auth-scrollable::-webkit-scrollbar-thumb:hover {
    background: #3d2f6b;
}

.k-auth-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: k-auth-spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes k-auth-spin {
    to { transform: rotate(360deg); }
}
